AnsPress_Dashboard::anspress_stats()
Description #
Full AnsPress stats.
Source #
File: admin/views/dashboard.php
public static function anspress_stats() { $question_count = ap_total_posts_count( 'question' ); ?> <div class="main"> <ul> <li class="post-count"> <a href="<?php echo esc_url( admin_url( 'edit.php?post_type=question' ) ); ?>" class="publish"> <?php // translators: placeholder contain count. echo esc_attr( sprintf( __( '%d Published', 'anspress-question-answer' ), $question_count->publish ) ); ?> </a> </li> <li class="post-count"> <a href="<?php echo esc_url( admin_url( 'edit.php?post_type=question&post_status=private_post' ) ); ?>" class="private"> <?php // translators: placeholder contain count. echo esc_attr( sprintf( __( '%d Private', 'anspress-question-answer' ), $question_count->private_post ) ); ?> </a> </li> <li class="post-count"> <a href="<?php echo esc_url( admin_url( 'edit.php?post_type=question&post_status=moderate' ) ); ?>" class="moderate"> <?php // translators: placeholder contain count. echo esc_attr( sprintf( __( '%d Moderate', 'anspress-question-answer' ), $question_count->moderate ) ); ?> </a> </li> </ul> </div> <?php }
Expand full source code Collapse full source code View on GitHub: admin/views/dashboard.php:61
Add your comment