Skip to content

Instantly share code, notes, and snippets.

@wickywills
Created October 16, 2019 07:47
Show Gist options
  • Save wickywills/bc3f796c0e084b397cc72f42f03e6842 to your computer and use it in GitHub Desktop.
Save wickywills/bc3f796c0e084b397cc72f42f03e6842 to your computer and use it in GitHub Desktop.
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