* @package AnsPress */ // If this file is called directly, abort. if ( ! defined('WPINC' ) ) { die; } class AnsPress_Dashboard{ function __construct() { add_action('admin_footer', array( __CLASS__, 'admin_footer' ) ); add_meta_box('ap-mb-aboutauthor', ''.__('About Author', 'anspress-question-answer' ), array( __CLASS__, 'anspress_aboutauthor' ), 'anspress', 'column1', 'core' ); add_meta_box('ap-mb-attn', ''.__('Require Attention', 'anspress-question-answer' ), array( __CLASS__, 'anspress_attn' ), 'anspress', 'column1', 'core' ); add_meta_box('anspress_feed', 'AnsPress Feed', array( __CLASS__, 'anspress_feed' ), 'anspress', 'column1', 'core' ); add_meta_box('ap-mb-qstats', ''.__('Questions', 'anspress-question-answer' ), array( __CLASS__, 'anspress_stats' ), 'anspress', 'column2', 'core' ); add_meta_box('ap-mb-latestq',__('Latest Questions', 'anspress-question-answer' ), array( __CLASS__, 'anspress_latestq' ), 'anspress', 'column2', 'core' ); add_meta_box('ap-mb-astats', ''.__('Answer', 'anspress-question-answer' ), array( __CLASS__, 'anspress_astats' ), 'anspress', 'column3', 'core' ); add_meta_box('ap-mb-latesta', __('Latest Answers', 'anspress-question-answer' ), array( __CLASS__, 'anspress_latesta' ), 'anspress', 'column3', 'core' ); add_meta_box('ap-mb-topusers', 'Top Users', array( __CLASS__, 'topusers' ), 'anspress', 'column4', 'core' ); } public static function admin_footer() { ?>
Rahul Aryan

Passionate WordPress developer. With over 7+ years’ experience, able to develop interactive plugins and themes. Also possess great familiarity of WP-Cli, APIs and JSON.

Skills and Experiences
WordPress Plugin Dev Theme Dev Node.js jQuery Angular.js RESTful WP-Cli RESTful LEMP Stack AWS
Hire Me (Full time or for a project)
get_results("SELECT date_format(post_date, '%d %a') as post_day, post_date, count(ID) as post_count from {$wpdb->posts} WHERE post_status IN('publish', 'closed', 'private_post', 'moderate') AND post_type = 'question' AND post_date > (NOW() - INTERVAL 1 MONTH) GROUP BY post_day ORDER BY post_date ASC" ); $days = array(); $counts = array(); foreach ( (array) $results as $r ) { $days[] = $r->post_day; $counts[] = $r->post_count; } ?>
'newest', 'showposts' => 5 ) ); ?>
get_results("SELECT date_format(post_date, '%d %a') as post_day, post_date, count(ID) as post_count from {$wpdb->posts} WHERE post_status IN('publish', 'closed', 'private_post', 'moderate') AND post_type = 'answer' AND post_date > (NOW() - INTERVAL 1 MONTH) GROUP BY post_day ORDER BY post_date ASC" ); $days = array(); $counts = array(); foreach ( (array) $results as $r ) { $days[] = $r->post_day; $counts[] = $r->post_count; } ?>
'newest', 'showposts' => 5 ) ); ?>
total || $question_count->moderate ) : ?> total || $answer_count->moderate ) : ?>
get_item_quantity() ) { echo '

'.__('Apparently, there are no updates to show!','anspress-question-answer' ).'

'; $rss->__destruct(); unset($rss ); return; } ?> __destruct(); unset($rss ); ?>
10, 'sortby' => 'reputation', 'paged' => 1, ); // The Query. $ap_user_query = ap_has_users( $user_a ); ?>
get_columns() ); $columns_css = ''; if ( $columns ) { $columns_css = " columns-$columns"; } ?>

AnsPress

  • ', '', '', '' ); ?>