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 |
---|---|
942 |
|
943 | // Get the request. |
944 | $request = wp_get_user_request( $request_id ); |
945 |
|
946 | if ( ! $request || 'remove_personal_data' !== $request->action_name ) { |
947 | wp_send_json_error( __( 'Invalid request ID when processing personal data to erase.' ) ); |
948 | } |
949 |
|
950 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
951 | $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); |
952 | $is_last_eraser = count( $erasers ) === $eraser_index; |
953 | $eraser_done = $response['done']; |
954 |
|
955 | if ( ! $is_last_eraser || ! $eraser_done ) { |
956 | return $response; |
957 | } |
958 |
|
959 | _wp_privacy_completed_request( $request_id ); |
960 |
|