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
4972       *         @type callable $callback               Callable eraser that accepts an email address and
4973       *                                                a page and returns an array with boolean values for
4974       *                                                whether items were removed or retained and any messages
4975       *                                                from the eraser, as well as if additional pages are
4976       *                                                available.
4977       *         @type string   $exporter_friendly_name Translated user facing friendly name for the eraser.
4978       *     }
4979       * }
4980       */
4981      $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() );
4982
4983      // Do we have any registered erasers?
4984      if ( 0 < count( $erasers ) ) {
4985
4986           if ( $eraser_index < 1 ) {
4987                wp_send_json_error( __( 'Eraser index cannot be less than one.' ) );
4988           }
4989
4990           if ( $eraser_index > count( $erasers ) ) {