users_have_additional_content filter-hookWP 5.2.0

Filters whether the users being deleted have additional content associated with them outside of the post_author and link_owner relationships.

Usage

add_filter( 'users_have_additional_content', 'wp_kama_users_have_additional_content_filter', 10, 2 );

/**
 * Function for `users_have_additional_content` filter-hook.
 * 
 * @param bool  $users_have_additional_content Whether the users have additional content.
 * @param int[] $user_ids                      Array of IDs for users being deleted.
 *
 * @return bool
 */
function wp_kama_users_have_additional_content_filter( $users_have_additional_content, $user_ids ){

	// filter...
	return $users_have_additional_content;
}
$users_have_additional_content(true|false)
Whether the users have additional content.
Default: false
$user_ids(int[])
Array of IDs for users being deleted.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

In file: /wp-admin/users.php
users_have_additional_content
wp-admin/users.php 311
$users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $user_ids );

Where the hook is used in WordPress

Usage not found.