Created
February 1, 2019 08:10
-
-
Save marushu/dfa1d2ac021128640df92e141771a076 to your computer and use it in GitHub Desktop.
check data only me.
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
<?php | |
global $current_user; | |
$user_info_obj = wp_get_current_user(); | |
//var_dump( $user_info_obj ); | |
//var_dump( $user_info_obj->data->user_login ); | |
$spesific_user = $user_info_obj->data->user_login; | |
if ( is_user_logged_in() && $spesific_user === 'xxxxx' ) { | |
var_dump($wp_query->found_posts); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment