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[] $userids                       Array of IDs for users being deleted.
 *
 * @return bool
 */
function wp_kama_users_have_additional_content_filter( $users_have_additional_content, $userids ){

	// filter...
	return $users_have_additional_content;
}
$users_have_additional_content(true|false)
Whether the users have additional content.
Default: false
$userids(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 299
$users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $userids );

Where the hook is used in WordPress

Usage not found.