Filters whether to propagate the blog status when a user is marked as spam.
$propagatebool$user_idintwp-admin/network/users.php:105file scopewp-admin/network/users.php:138file scope * * @since 7.0.0 * * @param bool $propagate Whether to propagate the blog status. Default false. * @param int $user_id User ID. */ if ( apply_filters( 'propagate_network_user_spam_to_blogs', false, $user_id ) ) { foreach ( get_blogs_of_user( $user_id, true ) as $details ) { // Assuming the main site is not a spam. if ( ! is_main_site( $details->userblog_id ) ) { update_blog_status( $details->userblog_id, 'spam', '1' ); } }Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.