Created
October 16, 2019 07:47
-
-
Save wickywills/bc3f796c0e084b397cc72f42f03e6842 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'; | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment