users_have_additional_content хук-фильтрWP 5.2.0

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

Использование

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.
По умолчанию: false
$userids(int[])
Array of IDs for users being deleted.

Список изменений

С версии 5.2.0 Введена.

Где вызывается хук

В файле: /wp-admin/users.php
users_have_additional_content
wp-admin/users.php 303
$users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $userids );

Где используется хук в WordPress

Использование не найдено.