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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
46 | public function column_email( $item ) { |
47 | $row_actions = array(); |
48 |
|
49 | // Allow the administrator to "force remove" the personal data even if confirmation has not yet been received. |
50 | $status = $item->status; |
51 | $request_id = $item->ID; |
52 | $row_actions = array(); |
53 | if ( 'request-confirmed' !== $status ) { |
54 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
55 | $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); |
56 | $erasers_count = count( $erasers ); |
57 | $nonce = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id ); |
58 |
|
59 | $remove_data_markup = '<span class="remove-personal-data force-remove-personal-data" ' . |
60 | 'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' . |
61 | 'data-request-id="' . esc_attr( $request_id ) . '" ' . |
62 | 'data-nonce="' . esc_attr( $nonce ) . |
63 | '">'; |
64 |
|
Line | Code |
117 | public function column_next_steps( $item ) { |
118 | $status = $item->status; |
119 |
|
120 | switch ( $status ) { |
121 | case 'request-pending': |
122 | esc_html_e( 'Waiting for confirmation' ); |
123 | break; |
124 | case 'request-confirmed': |
125 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
126 | $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); |
127 | $erasers_count = count( $erasers ); |
128 | $request_id = $item->ID; |
129 | $nonce = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id ); |
130 |
|
131 | echo '<div class="remove-personal-data" ' . |
132 | 'data-force-erase="1" ' . |
133 | 'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' . |
134 | 'data-request-id="' . esc_attr( $request_id ) . '" ' . |
135 | 'data-nonce="' . esc_attr( $nonce ) . |