users_have_additional_content
This is a WordPress - users_have_additional_content hook. The plugin just uses it.
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.
Where the hook is called
users_have_additional_content
woocommerce/src/Internal/Utilities/WebhookUtil.php 98
$users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $userids );