MK
$public_only = true -> true
Size: a a a
MK
$public_only = true -> true
VE
VE
$public_only = true -> true
$curr_user = wp_get_current_user();
print_r( count_user_posts( $curr_user->ID, "objects", $public_only->true ) );
if ( 0 != $curr_user->ID ) {
$user_unactive_post_count = count_user_posts( $curr_user->ID, "objects", $public_only = false );
$user_public_post_count = count_user_posts( $curr_user->ID, "objects", $public_only = true );
echo $user_unactive_post_count;
VE
VE
MK
MK
VE
VE
MK
MK
КЗ
MK
KD
VE
$curr_user = wp_get_current_user();
if ( 0 != $curr_user->ID ) {
$args = array(
'numberposts' => -1,
'post_type' => objects,
'post_status' => pending,
'author' => $curr_user->ID
);
$count_posts = count( get_posts( $args ) );
return $count_posts;
AO
VE
AO