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 |
---|---|
1389 | * Actions column. |
1390 | * |
1391 | * @since 4.9.6 |
1392 | * |
1393 | * @param WP_User_Request $item Item being shown. |
1394 | * @return string Email column markup. |
1395 | */ |
1396 | public function column_email( $item ) { |
1397 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
1398 | $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); |
1399 | $exporters_count = count( $exporters ); |
1400 | $request_id = $item->ID; |
1401 | $nonce = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id ); |
1402 |
|
1403 | $download_data_markup = '<div class="export-personal-data" ' . |
1404 | 'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' . |
1405 | 'data-request-id="' . esc_attr( $request_id ) . '" ' . |
1406 | 'data-nonce="' . esc_attr( $nonce ) . |
1407 | '">'; |
Line | Code |
1430 | public function column_next_steps( $item ) { |
1431 | $status = $item->status; |
1432 |
|
1433 | switch ( $status ) { |
1434 | case 'request-pending': |
1435 | esc_html_e( 'Waiting for confirmation' ); |
1436 | break; |
1437 | case 'request-confirmed': |
1438 | /** This filter is documented in wp-admin/includes/ajax-actions.php */ |
1439 | $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); |
1440 | $exporters_count = count( $exporters ); |
1441 | $request_id = $item->ID; |
1442 | $nonce = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id ); |
1443 |
|
1444 | echo '<div class="export-personal-data" ' . |
1445 | 'data-send-as-email="1" ' . |
1446 | 'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' . |
1447 | 'data-request-id="' . esc_attr( $request_id ) . '" ' . |
1448 | 'data-nonce="' . esc_attr( $nonce ) . |