users_have_additional_content

users_have_additional_content

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('users_have_additional_content') is found 1 times:

  • /wp-admin/users.php line 311
    		 *
    		 * @param bool  $users_have_additional_content Whether the users have additional content. Default false.
    		 * @param int[] $user_ids                      Array of IDs for users being deleted.
    		 */
    		$users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $user_ids );
    
    		if ( $user_ids && ! $users_have_content ) {
    			if ( $wpdb->get_var(
    				"SELECT ID FROM {$wpdb->posts}
    				WHERE post_author IN( " . implode( ',', $user_ids ) . ' )
    				LIMIT 1'