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 |
---|---|
5007 | * @type callable $callback Callable eraser that accepts an email address and |
5008 | * a page and returns an array with boolean values for |
5009 | * whether items were removed or retained and any messages |
5010 | * from the eraser, as well as if additional pages are |
5011 | * available. |
5012 | * @type string $exporter_friendly_name Translated user facing friendly name for the eraser. |
5013 | * } |
5014 | * } |
5015 | */ |
5016 | $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); |
5017 |
|
5018 | // Do we have any registered erasers? |
5019 | if ( 0 < count( $erasers ) ) { |
5020 |
|
5021 | if ( $eraser_index < 1 ) { |
5022 | wp_send_json_error( __( 'Eraser index cannot be less than one.' ) ); |
5023 | } |
5024 |
|
5025 | if ( $eraser_index > count( $erasers ) ) { |