Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_privacy_personal_data_erasers

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
4940       *         @type string $callback               Callable eraser that accepts an email address and
4941       *                                              a page and returns an array with boolean values for
4942       *                                              whether items were removed or retained and any messages
4943       *                                              from the eraser, as well as if additional pages are
4944       *                                              available.
4945       *         @type string $exporter_friendly_name Translated user facing friendly name for the eraser.
4946       *     }
4947       * }
4948       */
4949      $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );
4950
4951      // Do we have any registered erasers?
4952      if ( 0 < count( $erasers ) ) {
4953
4954           if ( $eraser_index < 1 ) {
4955                wp_send_json_error( __( 'Eraser index cannot be less than one.' ) );
4956           }
4957
4958           if ( $eraser_index > count( $erasers ) ) {