{"id":119329,"date":"2020-04-05T17:29:46","date_gmt":"2020-04-05T17:29:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/if-block-visibility-control-for-blocks\/"},"modified":"2020-06-14T22:45:30","modified_gmt":"2020-06-14T22:45:30","slug":"if-block-visibility-control-for-blocks","status":"closed","type":"plugin","link":"https:\/\/pirate.wordpress.org\/plugins\/if-block-visibility-control-for-blocks\/","author":14490511,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.0","stable_tag":"1.2.0","tested":"5.4.19","requires":"5.2","requires_php":"7.2","requires_plugins":"","header_name":"If Block \u2014 Visibility control for Blocks","header_author":"MyPreview","header_description":"This block enables you to configure certain content to appear only if specified conditions are met (or be hidden) by setting different visibility rules.","assets_banners_color":"38323b","last_updated":"2020-06-14 22:45:30","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.mypreview.one","header_plugin_uri":"https:\/\/www.mypreview.one","header_author_uri":"https:\/\/www.mypreview.one","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1131,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"2276522","resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"2276522","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"2276522","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"2276522","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"mypreview\/ifblock":{"name":"mypreview\/ifblock","title":"If Block \u2014 Visibility control for Blocks"}},"tagged_versions":["1.0.0","1.1.0","1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"2276522","resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Configuring block content to appear only if specified conditions are met."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1912,183925,130308,183924,1925],"plugin_category":[],"plugin_contributors":[129056,127215,151891],"plugin_business_model":[],"class_list":["post-119329","plugin","type-plugin","status-closed","hentry","plugin_tags-access-control","plugin_tags-block-logic","plugin_tags-conditional-logic","plugin_tags-if-block","plugin_tags-user-role","plugin_contributors-gookaani","plugin_contributors-mahdiyazdani","plugin_contributors-mypreview","plugin_committers-mahdiyazdani"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/if-block-visibility-control-for-blocks_38323b.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/if-block-visibility-control-for-blocks\/assets\/screenshot-1.png?rev=2276522","caption":"Configuring block content to appear only if specified conditions are met."}],"raw_content":"<!--section=description-->\n<p>This block enables you to configure certain content to appear only if specified conditions are met (or be hidden) by setting different visibility rules.<\/p>\n\n<p>You can add any Gutenberg block inside an if-block, have it render on the front-end of your site only if specified conditions are met. This block also provides an additional area (else-block) that can optionally display an alternative content in place when defined conditions are not met.<\/p>\n\n<p>The conditional logic of this block supports both <strong>AND<\/strong> and <strong>OR<\/strong> operators in conjunction with filtering a specif user role and also detecting visitor\u2019s browser software as well.<\/p>\n\n<!--section=installation-->\n<h4>Minimum Requirements<\/h4>\n\n<ul>\n<li>PHP version 7.2 or greater.<\/li>\n<li>MySQL version 5.6 or greater or MariaDB version 10.0 or greater.<\/li>\n<li>WordPress version 5.0 or greater.<\/li>\n<\/ul>\n\n<h4>Automatic installation<\/h4>\n\n<p>Automatic installation is the easiest option \u2014 WordPress will handle the file transfer, and you won\u2019t need to leave your web browser. To do an automatic install of the plugin, log in to your WordPress dashboard, navigate to the Plugins menu, and click \u201cAdd New.\u201d<\/p>\n\n<p>In the search field type \u201cIf Block\u201d, then click \u201cSearch Plugins.\u201d Once you\u2019ve found the plugin, you can view details about it such as the point release, rating, and description. Click \u201cInstall Now,\u201d and WordPress will take it from there.<\/p>\n\n<h4>Manual installation<\/h4>\n\n<p>The manual installation method requires downloading the plugin and uploading it to your webserver via your favorite FTP application. The WordPress codex contains <a href=\"https:\/\/wordpress.org\/support\/article\/managing-plugins\/#manual-plugin-installation\" title=\"Manual plugin installation\">instructions on how to do this here<\/a>.<\/p>\n\n<h4>Updating<\/h4>\n\n<p>Automatic updates should work smoothly, but we still recommend you back up your site.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt><h3>How do I use the block?<\/h3><\/dt>\n<dd><ol>\n<li>Log into your WordPress website and navigate to Dashboard.<\/li>\n<li>Create a new page, by visiting \u201cPages\u201d \u00bb \u201cAdd New\u201d.<\/li>\n<li>Click on the \u201cAdd Block\u201d button and select the \u201cIf Block\u201d block. Alternatively, you can start typing <code>\/ifblock<\/code> in a new paragraph block, then press enter.<\/li>\n<li>\u201cIf Block\u201d can contain other blocks. You can add content by clicking the <code>+<\/code> icon and picking a block.<\/li>\n<li>Publish the page.<\/li>\n<\/ol><\/dd>\n<dt><h3>What user roles are supported?<\/h3><\/dt>\n<dd><p>All pre-defined WordPress core user roles including the ones that might be registered by a third-party plugin such as WooCommerce are supported.<\/p><\/dd>\n<dt><h3>Which browsers are supported?<\/h3><\/dt>\n<dd><p>Currently, the if-block can detect and limit the content\u2019s appearance to visitors that are browsing the page via any of the following browsers:<\/p>\n\n<ul>\n<li>Google Chrome<\/li>\n<li>Safari<\/li>\n<li>iPhone Safari<\/li>\n<li>Netscape 4<\/li>\n<li>FireFox<\/li>\n<li>Opera<\/li>\n<li>Microsoft Edge<\/li>\n<li>Internet Explorer<\/li>\n<li>Mac Internet Explorer<\/li>\n<li>Windows Internet Explorer<\/li>\n<\/ul><\/dd>\n<dt><h3>How do I get help with the plugin?<\/h3><\/dt>\n<dd><p>The easiest way to receive support is to \u201cCreate a new topic\u201d by visiting Community Forums page <a href=\"https:\/\/wordpress.org\/support\/plugin\/if-block-visibility-control-for-blocks\" title=\"If Block \u2014 Visibility control for Blocks Support Forum\">here<\/a>.<\/p>\n\n<p>Make sure to check the \u201cNotify me of follow-up replies via email\u201d checkbox to receive notifications, as soon as a reply posted to your question or inquiry.<\/p>\n\n<p><em>Please note that this is an opensource 100% volunteer project, and it\u2019s not unusual to get reply days or even weeks later.<\/em><\/p><\/dd>\n<dt><h3>Can I help in translating this plugin into a new language?<\/h3><\/dt>\n<dd><p>The plugin is fully translation-ready and localized using the GNU framework, and translators are welcome to contribute to the plugin.<\/p>\n\n<p>Here\u2019s the <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/if-block-visibility-control-for-blocks\" title=\"WordPress translation website\">WordPress translation website &#8594;<\/a><\/p><\/dd>\n<dt><h3>How do I contribute to this plugin?<\/h3><\/dt>\n<dd><p>We welcome contributions in any form, and you can help reporting, testing, and detailing bugs.<\/p>\n\n<p>Here\u2019s the <a href=\"https:\/\/github.com\/mypreview\/ifblock\" title=\"GitHub development repository\">GitHub development repository &#8594;<\/a><\/p><\/dd>\n<dt><h3>Did you like the idea behind this plugin?<\/h3><\/dt>\n<dd><p>Please share your experience by leaving this plugin <a href=\"https:\/\/wordpress.org\/support\/plugin\/if-block-visibility-control-for-blocks\/reviews\/\" title=\"Rate If Block \u2014 Visibility control for Blocks 5 stars\">5 shining stars<\/a> if you like it, thanks!<\/p><\/dd>\n<dt><h3>I need help customizing this plugin?<\/h3><\/dt>\n<dd><p>I am a full-stack developer with over five years of experience in WordPress theme and plugin development and customization. I would love to have the opportunity to discuss your project with you.<\/p>\n\n<p><a href=\"https:\/\/www.upwork.com\/o\/profiles\/users\/_~016ad17ad3fc5cce94\/\" title=\"Mahdi Yazdani Freelancer Profile\">Hire me on UpWork &#8594;<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added <code>autoloader<\/code> support.<\/li>\n<li>Compatibility with WordPress 5.4.1<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Updated language file.<\/li>\n<li>Multiple code standards improvements.<\/li>\n<li>Compatibility with WordPress 5.4.1<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"This block enables you to configure certain content to appear only if specified conditions are met.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/119329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=119329"}],"author":[{"embeddable":true,"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mahdiyazdani"}],"wp:attachment":[{"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=119329"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=119329"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=119329"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=119329"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=119329"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pirate.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=119329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}