wickywills
10/16/2019 - 7:47 AM

Check if logged in as admin

Check if the user is logged in as admin so we can test data dumps:

$current_user = wp_get_current_user();
if (user_can( $current_user, 'administrator' )) {
    echo '<pre>';
    print_r($my_dump);
    echo '</pre>';
}