Home | Wordpress | Wordpress Plugins | Using filters of Simple Counters

Using filters of Simple Counters

Since version 1.1.17 of WordPress plugin Simple Counters were added two filters for possibility of your own localization of badge phrases. Why filters? Why not parameters? Because different languages have different number of plural forms and rules of using these forms. It means that we don’t know how many plural forms we need to save as parameters. Filters are better in this case because programmer can independently define number of plurals and rules of their using.

For your own localization of words «readers» and «followers» you can use plugin filters «simple_counters_localization_feedburner» and «simple_counters_localization_twitter«. In order to use them, you must add to the file functions.php theme template the following code:

or this code:

or this code:

Note! You must use filters of Simple Counters only in next cases:

  1. Plugin has not localization for your language
  2. You don’t like standard localization of words “readers” and “followers” for your language

 

© 2011 – 2018, minimus. All rights reserved.

About minimus

Senior Full Stack Web-developer (React, Node.js). Also: Development using Object Pascal, C#, SQL, PHP, Javascript.

Check Also

XAds for SAM Pro

This addon provides extended visualization of ads served by SAM Pro (Lite and Free edition). …

3 comments

  1. Hi Minimus,

    Great Plugin! Thankyou.

    Would you have any idea why I can’t get twitter followers to show up in the box? Feedburner readers do, but not Twitter. I have checked user name several times but I can’t figure this out.

    Thanks for your help.     
    Total Comment by Darren Noble: 1

  1. Pingback: minimus

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.