options = new Serialize_Options(); } public function get_default_options() { return $this->options; } /** * Builds options page */ public function options_form() { $default_post_types = get_post_types('', 'names'); foreach ($default_post_types as $post_type) { if ($post_type != 'attachment' && $post_type != 'revision' && $post_type != 'nav_menu_item') { $this->post_types[] = $post_type; } } if (empty($this->options->post_types)) { $this->options->post_types = $this->post_types; } if (isset($_POST['submit'])) { if (function_exists('current_user_can') && !current_user_can('manage_options')) { die(_e('Hacker?', 'statistics_info')); } if (function_exists('check_admin_referer')) { check_admin_referer('stats_options_form'); } $this->options->is_stats_together = $_POST['is_stats_together']; $this->options->post_types = empty($_POST['post_types']) ? $this->post_types : $_POST['post_types']; $this->options->is_display_author_name = $_POST['is_display_author_name']; $this->options->is_display_author_avatar = $_POST['is_display_author_avatar']; $this->options->is_author_popular_by_post_count = $_POST['is_author_popular_by_post_count']; $this->options->is_popular_posts_by_post_views = $_POST['is_popular_posts_by_post_views']; $this->options->popular_authors_limit = $_POST['popular_authors_limit']; $this->options->is_post_view_by_ip = $_POST['is_post_view_by_ip']; $this->options->popular_posts_limit = $_POST['popular_posts_limit']; $this->options->active_theme_name = $_POST['active_theme_name']; $this->options->custom_css = $_POST['custom_css']; $this->options->updateOptions(); } ?>



Author & Post Statistic Widgets PRO     Update to Pro Now!
APSW Pro generates graphical statistic for authors' activity and posts' popularity.

 Like Author & Post Statistic Widgets plugin?
  • If you like APSW and want to encourage us to develop and maintain it,why not do any or all of the following:
  • - Link to it so other folks can find out about it.
  • - Give it a good rating on WordPress.org.
  • - We spend as much of my spare time as possible working on Author & Post Statistic Widgets plugin and any donation is appreciated. Donations play a crucial role in supporting Free and Open Source Software projects.

    You have my sincere thanks and appreciation for using APSW.

Show author and post statistics in:
Create statistic for post types: post_types as $post_type) { ?>
Display Author Full Name:
Display Author Avatar:
Show popular author by posts:
options->is_author_popular_by_post_count; ?>


Popular authors limit:
options->popular_authors_limit; ?>
Show popular posts by:
options->is_popular_posts_by_post_views; ?>

Popular posts limit:
options->popular_posts_limit; ?>
Count post view by:
options->is_post_view_by_ip; ?>

Need Help?

If you need help with this plugin or if you want to make a suggestion, then please visit to our support Q&A forum. gVectors Support Forum