Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit faf792f

Browse files
Create disable-email-change-email-notification-specific-user.txt
1 parent a9e5cba commit faf792f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
add_filter( 'send_email_change_email', function( $send, $user, $user_data ) {
2+
if ( isset( $user->ID ) && $user->ID === 1200 ) {
3+
return false; // Disable email for user ID 1243
4+
}
5+
return $send; // Default behavior for all other users
6+
}, 10, 3 );

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /