mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
6 lines
264 B
Text
6 lines
264 B
Text
add_filter( 'send_email_change_email', function( $send, $user, $user_data ) {
|
|
if ( isset( $user->ID ) && $user->ID === 1200 ) {
|
|
return false; // Disable email for user ID 1243
|
|
}
|
|
return $send; // Default behavior for all other users
|
|
}, 10, 3 );
|