roles[0]; if(($u_role == "administrator") || ($u_role == "editor") || ($u_role == "author")){ add_submenu_page( 'edit.php' , 'Admin Statistics', 'Admin Statistics', $u_role, 'admin_statistics', 'my_admin_aps_statistics' ); } } add_action('admin_menu', 'aps_statistics' ); function my_admin_aps_statistics() { if(is_admin() && !is_front_page() && !is_singular() && !is_archive()) { $args=array( 'role__in' => array('administrator','editor','author'), 'orderby' => 'post_count', 'order' => 'DESC', 'count_total' => false ); $Admins = get_users( $args ); // Array of WP_User objects. foreach ( $Admins as $user ) { //echo $user -> display_name."
"; $admin_ids[]= $user -> ID; // echo $user -> ID; $errormessage=0; } ?>

Pick a date

Please fill both fields .


Admin Post Count


Please use the right date format such as :
mm/dd/yyyy

strtotime($datepicked2)) { $temp=$datepicked2; $datepicked2=$datepicked1; $datepicked1=$temp; } else{ if( checkdate($d1[0], $d1[1], $d1[2]) && checkdate($d2[0], $d2[1], $d2[2])) { ?>
display_name); ?> published -- -- posts -- "; echo aps_count_user_posts_by_date($id,$datepicked1,$datepicked2); echo ' -- '; echo " posts were published between "; esc_html_e($datepicked1); echo " and "; esc_html_e($datepicked2); echo ""; ?>
$userid, 'date_query' => array( array( 'after' => $date1, 'before' => array( 'year' => $d[2], 'month' => $d[0], 'day' => $d[1], ), 'inclusive' => true, ), )); $query = new WP_Query( $args ); $count = $query->post_count; return $count; } function aps_process_jk_youtube_options() { if ( !current_user_can( 'manage_options' ) ) { wp_die( 'You are not allowed to be on this page.' ); } // Check that nonce field check_admin_referer( 'jk_op_verify' ); exit; } add_action( 'admin_post_jk_save_youtube_option', 'aps_process_jk_youtube_options' ); ?>