_wp_personal_data_cleanup_requests example

get_current_screen()->set_help_sidebar(
    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    '<p>' . __( '<a href="https://wordpress.org/documentation/article/tools-export-personal-data-screen/">Documentation on Export Personal Data</a>' ) . '</p>' .
    '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

// Handle list table actions. _wp_personal_data_handle_actions();

// Cleans up failed and expired requests before displaying the list table. _wp_personal_data_cleanup_requests();

wp_enqueue_script( 'privacy-tools' );

add_screen_option(
    'per_page',
    array(
        'default' => 20,
        'option'  => 'export_personal_data_requests_per_page',
    )
);

get_current_screen()->set_help_sidebar(
    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    '<p>' . __( '<a href="https://wordpress.org/documentation/article/tools-erase-personal-data-screen/">Documentation on Erase Personal Data</a>' ) . '</p>' .
    '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
);

// Handle list table actions. _wp_personal_data_handle_actions();

// Cleans up failed and expired requests before displaying the list table. _wp_personal_data_cleanup_requests();

wp_enqueue_script( 'privacy-tools' );

add_screen_option(
    'per_page',
    array(
        'default' => 20,
        'option'  => 'remove_personal_data_requests_per_page',
    )
);

Home | Imprint | This part of the site doesn't use cookies.