| 开发者 | spacexgen |
|---|---|
| 更新时间 | 2026年10月5日 18:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[netstan_count] shortcode, and themes can print it themselves.[netstan_count] shows the badge for the current post. [netstan_count id="123"] shows it for a specific post.
For theme developers
Call netstan_count_badge( $post_id ) (returns escaped HTML) to print the badge yourself. To load the counts for a whole list of posts in a single query first, call netstan_count_prefetch( $post_ids ). Declare add_theme_support( 'netstan-count' ) so the plugin doesn't also add its automatic badge, or use the netstan_count_theme_renders_badge filter.
/wp-content/plugins/, or install it from the Plugins screen.Yes. Counting and the dashboard don't depend on the theme, and the badge is added above single-post content automatically. You can turn that off under Netstan Count > Settings and use the shortcode instead.
Yes. Views are sent from the visitor's browser to a REST endpoint, so a cached page is counted like any other.
No. Only a per-post, per-day view total is stored. A first-party cookie that expires after 30 minutes stops one visitor's reloads from inflating the count; it holds no personal information.
No. Both editions use the same data table. Deactivate Netstan Count Lite before activating Netstan Count; the two can't be active together.
Administrators (anyone who can manage the site's settings).
It isn't built for network-wide use and can't be network-activated. Activate it on each site individually from that site's Plugins screen; every site then keeps its own counts. It has not been tested on a multisite network.
WordPress 6.0 or newer and PHP 7.4 or newer.