{"id":105715,"date":"2019-06-27T18:53:12","date_gmt":"2019-06-27T18:53:12","guid":{"rendered":"https:\/\/es-ar.wordpress.org\/plugins\/mwr-hit-counter\/"},"modified":"2025-09-16T23:02:36","modified_gmt":"2025-09-16T23:02:36","slug":"mwr-hit-counter","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/mwr-hit-counter\/","author":15204436,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.8.5","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"MWR Hit Counter","header_author":"Daniel M. Ochoa","header_description":"Simple hit counter for your website.","assets_banners_color":"","last_updated":"2025-09-16 23:02:36","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/miwebrentable","header_plugin_uri":"","header_author_uri":"https:\/\/miwebrentable.com","rating":5,"author_block_rating":0,"active_installs":100,"downloads":2851,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"scriptsworks","date":"2019-06-30 23:57:41"},"1.1.0":{"tag":"1.1.0","author":"scriptsworks","date":"2025-09-16 23:02:36"}},"upgrade_notice":{"1.1.0":"<p>This update improves security, fixes compatibility with the latest WordPress and PHP versions, and ensures reliable counting.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2113888,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Shortcode usage example (screenshot-1.png)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[868,47851,47847,47852,47855],"plugin_category":[],"plugin_contributors":[173263],"plugin_business_model":[],"class_list":["post-105715","plugin","type-plugin","status-publish","hentry","plugin_tags-hit-counter","plugin_tags-page-counter","plugin_tags-page-view-count","plugin_tags-page-visit","plugin_tags-wordpress-page-view","plugin_contributors-scriptsworks","plugin_committers-scriptsworks"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/mwr-hit-counter.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/mwr-hit-counter\/assets\/screenshot-1.png?rev=2113888","caption":"Shortcode usage example (screenshot-1.png)"}],"raw_content":"<!--section=description-->\n<p>MWR Hit Counter is a simple and lightweight text-based counter for your website.<br \/>\nIt uses a single database table and a cookie to count unique visitors over 30 days.<br \/>\nNo IP tracking, no bloated features \u2014 just a clean counter you can display anywhere.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/mwr-hit-counter<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Add the shortcode where you want the counter to appear.<\/li>\n<\/ol>\n\n<h4>Examples<\/h4>\n\n<p>Template code (in PHP):<\/p>\n\n<pre><code>&lt;?php echo do_shortcode( '[mwrcounter start=500]' ); ?&gt;\n<\/code><\/pre>\n\n<p>Post\/Page code:<\/p>\n\n<pre><code>[mwrcounter start=500]\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id='which%20wordpress%20versions%20are%20supported%3F'><h3>Which WordPress versions are supported?<\/h3><\/dt>\n<dd><p>Tested with WordPress 6.8.2 and should work with any version from 5.0+.<\/p><\/dd>\n<dt id='why%20does%20the%20counter%20not%20increase%20on%20page%20refresh%3F'><h3>Why does the counter not increase on page refresh?<\/h3><\/dt>\n<dd><p>This plugin uses a cookie (valid for 30 days) to prevent counting the same user repeatedly.<\/p><\/dd>\n<dt id='can%20i%20change%20the%20starting%20value%3F'><h3>Can I change the starting value?<\/h3><\/dt>\n<dd><p>Yes, use the <code>start<\/code> attribute in the shortcode: <code>[mwrcounter start=100]<\/code>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Updated for compatibility with WordPress 6.8.2<\/li>\n<li>Improved database table creation using <code>dbDelta()<\/code> with primary key<\/li>\n<li>Added safety checks for PHP 8+<\/li>\n<li>Secure cookie parameters for better compatibility<\/li>\n<li>Code cleanup and better escaping for database operations<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"MWR Hit Counter is a simple and lightweight text-based counter for your website.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/105715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=105715"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/scriptsworks"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=105715"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=105715"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=105715"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=105715"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=105715"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=105715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}