Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Helper function for determining whether the current user is a demo user or not.
- *
- * @since 1.0.0
- *
- * @return bool Whether or not the user is a demo
- */
- private function is_demo_user() {
- return (bool) ! current_user_can( 'manage_options' );
- }
Add Comment
Please, Sign In to add comment