Skip to content

Commit 3a36878

Browse files
committed
340 RC2
1 parent d620831 commit 3a36878

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

readme.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,20 @@ add_filter( 'manage_edit-projects_sortable_columns', 'tptn_column_register_sorta
147147

148148
= 3.4.0 =
149149

150-
* Feature:
150+
* Features:
151151
* New REST API route (counter) to get the post count for a post.
152152
* New block: Top 10 Post Count Block that allows you to display the post count for a post.
153153
* [Pro] New Top 10 Query Block that allows you to query related posts using a block in the block or site editor.
154154
* [Pro] New Top 10 Featured Image Block that is an advanced version of the featured image block that supports multiple different image sources.
155155
* [Pro] Pro version adds additional features to the Popular Posts block:
156156
* New buttons to save default block settings and clear them.
157157
* Inserting the block will also insert the attributes for the default and global settings automatically. This can be disabled in the settings page under the **Posts List** tab.
158+
* [Pro] New menu item in the admin bar to display the daily, total and overal post counts as well as link to the Top 10 admin pages and clear the Top 10 cache.
159+
* [Pro] New parameter `display_only_on_tax_ids` to display related posts only on specific taxonomy terms
158160
* New filters `top_ten_query_exclude_terms_include_parents` and `top_ten_query_include_terms_include_parents` to include parent terms when querying posts. In the Pro version, you can turn this on in the settings page.
161+
* New `get_tptn_short_circuit` filter to short-circuit the plugin's output.
162+
* [Pro] New setting "Display columns on post types" to select the post types screens on which the admin columns should be displayed.
163+
* [Pro] New setting "Also show dashboard to" to select the user roles that should see the dashboard screen.
159164

160165
* Enhancements:
161166
* The plugin supports `WP_Query` directly if `top_ten_query` is set in the query arguments.

top-10.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
* @copyright 2008-2024 Ajay D'Souza
1212
*
1313
* @wordpress-plugin
14-
* Plugin Name: Top 10
14+
* Plugin Name: Top 10 Pro
1515
* Plugin URI: https://webberzone.com/plugins/top-10/
1616
* Description: Count daily and total visits per post and display the most popular posts based on the number of views
17-
* Version: 3.4.0-RC1
17+
* Version: 3.4.0-RC2
1818
* Author: WebberZone
1919
* Author URI: https://webberzone.com
2020
* License: GPL-2.0+
@@ -98,7 +98,7 @@
9898
* @param bool $network_wide Whether the plugin is being activated network-wide.
9999
*/
100100
function activate_tptn( $network_wide ) {
101-
\WebberZone\Top_Ten\Admin\Activator::activation_hook( $network_wide );
101+
Admin\Activator::activation_hook( $network_wide );
102102
}
103103
register_activation_hook( __FILE__, __NAMESPACE__ . '\activate_tptn' );
104104

@@ -108,7 +108,7 @@ function activate_tptn( $network_wide ) {
108108
* @since 3.3.0
109109
*/
110110
function load_tptn() {
111-
\WebberZone\Top_Ten\Main::get_instance();
111+
Main::get_instance();
112112
}
113113
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_tptn' );
114114

0 commit comments

Comments
 (0)