Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_privacy_personal_data_exporters

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

This hook occurs 2 times in this file.

Line Code
1493       * Actions column.
1494       *
1495       * @since 4.9.6
1496       *
1497       * @param WP_User_Request $item Item being shown.
1498       * @return string Email column markup.
1499       */
1500      public function column_email( $item ) {
1501           /** This filter is documented in wp-admin/includes/ajax-actions.php */
1502           $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
1503           $exporters_count = count( $exporters );
1504           $request_id      = $item->ID;
1505           $nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );
1506
1507           $download_data_markup = '<div class="export-personal-data" ' .
1508                'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
1509                'data-request-id="' . esc_attr( $request_id ) . '" ' .
1510                'data-nonce="' . esc_attr( $nonce ) .
1511                '">';
 
Line Code
1534      public function column_next_steps( $item ) {
1535           $status = $item->status;
1536
1537           switch ( $status ) {
1538                case 'request-pending':
1539                     esc_html_e( 'Waiting for confirmation' );
1540                     break;
1541                case 'request-confirmed':
1542                     /** This filter is documented in wp-admin/includes/ajax-actions.php */
1543                     $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
1544                     $exporters_count = count( $exporters );
1545                     $request_id      = $item->ID;
1546                     $nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );
1547
1548                     echo '<div class="export-personal-data" ' .
1549                          'data-send-as-email="1" ' .
1550                          'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
1551                          'data-request-id="' . esc_attr( $request_id ) . '" ' .
1552                          'data-nonce="' . esc_attr( $nonce ) .