{"id":45113,"date":"2010-12-08T18:00:45","date_gmt":"2010-12-08T18:00:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/followers-count\/"},"modified":"2010-12-06T17:29:51","modified_gmt":"2010-12-06T17:29:51","slug":"followers-count","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/followers-count\/","author":370384,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"1.0","tested":"3.0.5","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Followers Count","header_author":"Derek Herman","header_description":"","assets_banners_color":"","last_updated":"2010-12-06 17:29:51","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_xclick&business=accounts@valendesigns.com&item_name=Followers+Count","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/followers-count\/","header_author_uri":"http:\/\/valendesigns.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1524,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1556,3568,93313,159],"plugin_category":[56],"plugin_contributors":[78127],"plugin_business_model":[],"class_list":["post-45113","plugin","type-plugin","status-closed","hentry","plugin_tags-api","plugin_tags-followers","plugin_tags-followers-count","plugin_tags-twitter","plugin_category-social-and-sharing","plugin_contributors-valendesigns","plugin_committers-valendesigns"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/followers-count.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Returns a database stored Twitter Followers Count in plain text or number format. Reduces the Twitter API calls by only updating the followers count hourly and serving a database cached result in between.<\/p>\n\n<p>You can use the function <code>&lt;?php followers_count( $id, $default, $echo, $format ); ?&gt;<\/code> in your theme files. The following is an explanation of the parameters the function excepts.<\/p>\n\n<ul>\n<li>@param array $ids an array of Twitter IDs<\/li>\n<li>@param int $default your fallback followers count during a zero result: default 0<\/li>\n<li>@param bool $echo return or echo: default true (echo)<\/li>\n<li>@param bool $format return as plain integer or number formatted: default true (number format)<\/li>\n<\/ul>\n\n<p>For example, if I was Psdtuts+ and wanted to echo out a followers count that had a fallback or default followers count in the unlikely event nothing is stored in the database or there is a weird zero result returned, I would do the follow.\n    <\/p>\n\n<p>If I wanted to save the count to a variable as a plain integer that I could add to another count or something similar I would do this.\n    <\/p>\n\n<p>If I wanted to echo a formatted count form an array of $ids with a fallback, I would do this.\n    <\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>followers-count<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Does this plugin require any certain PHP functions?<\/dt>\n<dd><p>Yes! Your server must have <code>json_decode()<\/code> available or the plugin will fail to work properly. Basically, you server needs to be running PHP 5.<\/p><\/dd>\n<dt>Nothing seems to be showing?<\/dt>\n<dd><p>Check with your server to make sure the <code>file_get_contents()<\/code> function is available for getting the contents of external (not just local) files.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Returns your Twitter Followers Count. Reduces the Twitter API calls by updating hourly and serving a database cached result in between.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/45113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=45113"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/valendesigns"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=45113"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=45113"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=45113"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=45113"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=45113"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=45113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}