{"id":40458,"date":"2015-12-01T02:26:46","date_gmt":"2015-12-01T02:26:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wptoggler\/"},"modified":"2015-12-01T02:26:46","modified_gmt":"2015-12-01T02:26:46","slug":"wptoggler","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wptoggler\/","author":14644160,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"trunk","tested":"4.3.34","requires":"4.3.1","requires_php":"","requires_plugins":null,"header_name":"WPToggler","header_author":"Lars Jensen","header_description":"","assets_banners_color":"","last_updated":"2015-12-01 02:26:46","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/exenova.dk\/","header_plugin_uri":"https:\/\/github.com\/larjen\/WPToggler","header_author_uri":"http:\/\/exenova.dk\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":970,"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":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[262246],"plugin_tags":[2133],"plugin_category":[],"plugin_contributors":[262313],"plugin_business_model":[],"class_list":["post-40458","plugin","type-plugin","status-publish","hentry","plugin_section-dashboard-widgets","plugin_tags-toggle","plugin_contributors-larjen","plugin_committers-larjen"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wptoggler.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>A simple WordPress plugin that lets you toggle exactly one option on and off.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download to your Wordpress plugin folder.<\/li>\n<li>Activate plugin.<\/li>\n<li>Modify your template file where you want the switch to take effect. (See example below.)<\/li>\n<li>Toggle away.<\/li>\n<\/ol>\n\n<h4>How to use the shortcode<\/h4>\n\n<p>In your post type in something like this:<\/p>\n\n<pre><code>[wptoggler true=\"This text will be displayed when true\" false=\"This text will be displayed when false\"]\n<\/code><\/pre>\n\n<p>This will toggle the text in the post to your liking.<\/p>\n\n<h4>Example of how to use switch in template<\/h4>\n\n<p>This option is only meant for theme developers. If you put this somewhere in your template file to switch between the two states.<\/p>\n\n<pre><code>&lt;?php if (!get_option('WPToggler_VALUE')){ ?&gt;\n&lt;h1&gt;WPToggler is FALSE&lt;\/h1&gt;\n&lt;?php } else { ?&gt;\n&lt;h1&gt;WPToggler is TRUE&lt;\/h1&gt;\n&lt;?php } ?&gt;\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20i%20use%20this%20at%20my%20own%20risk%3F\"><h3>Do I use this at my own risk?<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added option to rename dashboard widget.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Added dashboard widget, so control is at the dashboard.<\/li>\n<li>Added fully customizable textual control to the plugin settings page.<\/li>\n<li>Added the ability to use the shortcodes in blog posts.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Uploaded plugin.<\/li>\n<\/ul>","raw_excerpt":"A simple WordPress plugin that lets you toggle exactly one option on and off.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/40458","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=40458"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/larjen"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=40458"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=40458"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=40458"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=40458"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=40458"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=40458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}