users_have_additional_content хук-фильтрWC 1.0

Это хук WordPress - users_have_additional_content. Плагин его просто использует.

Filters whether the users being deleted have additional content associated with them outside of the post_author 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[] $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.
По умолчанию: false
$user_ids(int[])
Array of IDs for users being deleted.

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

WebhookUtil::maybe_render_user_with_webhooks_warning()
users_have_additional_content
woocommerce/src/Internal/Utilities/WebhookUtil.php 99
$users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $userids );

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

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