Skip to content

Commit 358c265

Browse files
committed
Let PHPCS ignore core hooks
1 parent 4e94802 commit 358c265

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/User_Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,11 +1248,13 @@ private function update_msuser_status( $user_ids, $pref, $value ) {
12481248
]
12491249
);
12501250
remove_filter( 'wp_pre_insert_user_data', [ $this, 'set_spam_value' ], 10 );
1251+
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- We want to fake Core actions.
12511252
if ( 1 === (int) $value ) {
12521253
do_action( 'make_spam_user', $user_id );
12531254
} else {
12541255
do_action( 'make_ham_user', $user_id );
12551256
}
1257+
// phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
12561258
} else {
12571259
wp_update_user(
12581260
[

0 commit comments

Comments
 (0)