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
39       * Actions column.
40       *
41       * @since 4.9.6
42       *
43       * @param WP_User_Request $item Item being shown.
44       * @return string Email column markup.
45       */
46      public function column_email( $item ) {
47           /** This filter is documented in wp-admin/includes/ajax-actions.php */
48           $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
49           $exporters_count = count( $exporters );
50           $request_id      = $item->ID;
51           $nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );
52
53           $download_data_markup = '<div class="export-personal-data" ' .
54                'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
55                'data-request-id="' . esc_attr( $request_id ) . '" ' .
56                'data-nonce="' . esc_attr( $nonce ) .
57                '">';
 
Line Code
80      public function column_next_steps( $item ) {
81           $status = $item->status;
82
83           switch ( $status ) {
84                case 'request-pending':
85                     esc_html_e( 'Waiting for confirmation' );
86                     break;
87                case 'request-confirmed':
88                     /** This filter is documented in wp-admin/includes/ajax-actions.php */
89                     $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
90                     $exporters_count = count( $exporters );
91                     $request_id      = $item->ID;
92                     $nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );
93
94                     echo '<div class="export-personal-data" ' .
95                          'data-send-as-email="1" ' .
96                          'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
97                          'data-request-id="' . esc_attr( $request_id ) . '" ' .
98                          'data-nonce="' . esc_attr( $nonce ) .