WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
244 | /** |
245 | * Filters whether the users being deleted have additional content |
246 | * associated with them outside of the `post_author` and `link_owner` relationships. |
247 | * |
248 | * @since 5.2.0 |
249 | * |
250 | * @param bool $users_have_additional_content Whether the users have additional content. Default false. |
251 | * @param int[] $userids Array of IDs for users being deleted. |
252 | */ |
253 | $users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $userids ); |
254 |
|
255 | if ( $userids && ! $users_have_content ) { |
256 | if ( $wpdb->get_var( "SELECT ID FROM {$wpdb->posts} WHERE post_author IN( " . implode( ',', $userids ) . ' ) LIMIT 1' ) ) { |
257 | $users_have_content = true; |
258 | } elseif ( $wpdb->get_var( "SELECT link_id FROM {$wpdb->links} WHERE link_owner IN( " . implode( ',', $userids ) . ' ) LIMIT 1' ) ) { |
259 | $users_have_content = true; |
260 | } |
261 | } |
262 |
|