wp_privacy_personal_data_erasers

wp_privacy_personal_data_erasers

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_privacy_personal_data_erasers') is found 4 times:

  • /wp-admin/includes/ajax-actions.php line 5156

    * @type string $exporter_friendly_name Translated user facing friendly name for the eraser.
    * }
    * }
    */
    $erasers = apply_filters( ‘wp_privacy_personal_data_erasers’, array() );

    // Do we have any registered erasers?
    if ( 0 < count( $erasers ) ) { if ( $eraser_index < 1 ) { wp_send_json_error( __( 'Eraser index cannot be less than one.' ) ); [/php]

  • /wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php line 55

    $request_id = $item->ID;
    $row_actions = array();
    if ( ‘request-confirmed’ !== $status ) {
    /** This filter is documented in wp-admin/includes/ajax-actions.php */
    $erasers = apply_filters( ‘wp_privacy_personal_data_erasers’, array() );
    $erasers_count = count( $erasers );
    $nonce = wp_create_nonce( ‘wp-privacy-erase-personal-data-‘ . $request_id );

    $remove_data_markup = ‘

  • /wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php line 126

    esc_html_e( ‘Waiting for confirmation’ );
    break;
    case ‘request-confirmed’:
    /** This filter is documented in wp-admin/includes/ajax-actions.php */
    $erasers = apply_filters( ‘wp_privacy_personal_data_erasers’, array() );
    $erasers_count = count( $erasers );
    $request_id = $item->ID;
    $nonce = wp_create_nonce( ‘wp-privacy-erase-personal-data-‘ . $request_id );

    echo ‘

  • /wp-admin/includes/privacy-tools.php line 948
    		wp_send_json_error( __( 'Invalid request ID when processing personal data to erase.' ) );
    	}
    
    	/** This filter is documented in wp-admin/includes/ajax-actions.php */
    	$erasers        = apply_filters( 'wp_privacy_personal_data_erasers', array() );
    	$is_last_eraser = count( $erasers ) === $eraser_index;
    	$eraser_done    = $response['done'];
    
    	if ( ! $is_last_eraser || ! $eraser_done ) {
    		return $response;
    	}
    

See this hook used in plugins: