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
1510       * Actions column.
1511       *
1512       * @since 4.9.6
1513       *
1514       * @param WP_User_Request $item Item being shown.
1515       * @return string Email column markup.
1516       */
1517      public function column_email( $item ) {
1518           /** This filter is documented in wp-admin/includes/ajax-actions.php */
1519           $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
1520           $exporters_count = count( $exporters );
1521           $request_id      = $item->ID;
1522           $nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );
1523
1524           $download_data_markup = '<div class="export-personal-data" ' .
1525                'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
1526                'data-request-id="' . esc_attr( $request_id ) . '" ' .
1527                'data-nonce="' . esc_attr( $nonce ) .
1528                '">';
 
Line Code
1551      public function column_next_steps( $item ) {
1552           $status = $item->status;
1553
1554           switch ( $status ) {
1555                case 'request-pending':
1556                     esc_html_e( 'Waiting for confirmation' );
1557                     break;
1558                case 'request-confirmed':
1559                     /** This filter is documented in wp-admin/includes/ajax-actions.php */
1560                     $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
1561                     $exporters_count = count( $exporters );
1562                     $request_id      = $item->ID;
1563                     $nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );
1564
1565                     echo '<div class="export-personal-data" ' .
1566                          'data-send-as-email="1" ' .
1567                          'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
1568                          'data-request-id="' . esc_attr( $request_id ) . '" ' .
1569                          'data-nonce="' . esc_attr( $nonce ) .