mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
4 lines
240 B
Text
4 lines
240 B
Text
function mtp_disable_mobile_messaging( $mailer ) {
|
|
remove_action( 'woocommerce_email_footer', array( $mailer->emails['WC_Email_New_Order'], 'mobile_messaging' ), 9 );
|
|
}
|
|
add_action( 'woocommerce_email', 'mtp_disable_mobile_messaging' );
|