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 |
---|---|
44 | * @return string Email column markup. |
45 | */ |
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 | if ( 'request-confirmed' !== $status ) { |
52 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
53 | $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); |
54 | $erasers_count = count( $erasers ); |
55 | $request_id = $item->ID; |
56 | $nonce = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id ); |
57 |
|
58 | $remove_data_markup = '<div class="remove-personal-data force-remove-personal-data" ' . |
59 | 'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' . |
60 | 'data-request-id="' . esc_attr( $request_id ) . '" ' . |
61 | 'data-nonce="' . esc_attr( $nonce ) . |
62 | '">'; |
Line | Code |
86 | public function column_next_steps( $item ) { |
87 | $status = $item->status; |
88 |
|
89 | switch ( $status ) { |
90 | case 'request-pending': |
91 | esc_html_e( 'Waiting for confirmation' ); |
92 | break; |
93 | case 'request-confirmed': |
94 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
95 | $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); |
96 | $erasers_count = count( $erasers ); |
97 | $request_id = $item->ID; |
98 | $nonce = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id ); |
99 |
|
100 | echo '<div class="remove-personal-data" ' . |
101 | 'data-force-erase="1" ' . |
102 | 'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' . |
103 | 'data-request-id="' . esc_attr( $request_id ) . '" ' . |
104 | 'data-nonce="' . esc_attr( $nonce ) . |