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 |
|---|---|
| 4956 | * |
| 4957 | * @type callable $callback Callable exporter function that accepts an |
| 4958 | * email address and a page number and returns an |
| 4959 | * array of name => value pairs of personal data. |
| 4960 | * @type string $exporter_friendly_name Translated user facing friendly name for the |
| 4961 | * exporter. |
| 4962 | * } |
| 4963 | * } |
| 4964 | */ |
| 4965 | $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); |
| 4966 | |
| 4967 | if ( ! is_array( $exporters ) ) { |
| 4968 | wp_send_json_error( __( 'An exporter has improperly used the registration filter.' ) ); |
| 4969 | } |
| 4970 | |
| 4971 | // Do we have any registered exporters? |
| 4972 | if ( 0 < count( $exporters ) ) { |
| 4973 | if ( $exporter_index < 1 ) { |
| 4974 | wp_send_json_error( __( 'Exporter index cannot be negative.' ) ); |