{"id":521,"date":"2009-07-16T11:57:34","date_gmt":"2009-07-16T11:57:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/widget-context\/"},"modified":"2024-08-31T11:02:05","modified_gmt":"2024-08-31T11:02:05","slug":"widget-context","status":"publish","type":"plugin","link":"https:\/\/de.wordpress.org\/plugins\/widget-context\/","author":345238,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.3","stable_tag":"1.3.3","tested":"6.6.5","requires":"3.0","requires_php":"5.6","requires_plugins":null,"header_name":"Widget Context","header_author":"Kaspars Dambis","header_description":"","assets_banners_color":"589b34","last_updated":"2024-08-31 11:02:05","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/widgetcontext.com\/pro","header_plugin_uri":"https:\/\/widgetcontext.com","header_author_uri":"https:\/\/widgetcontext.com","rating":4.5,"author_block_rating":0,"active_installs":40000,"downloads":968855,"num_ratings":96,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"0.4.1":{"tag":"0.4.1","author":"kasparsd","date":"2009-07-16 11:57:34"},"0.4.2":{"tag":"0.4.2","author":"kasparsd","date":"2009-07-16 12:12:48"},"0.4.3":{"tag":"0.4.3","author":"kasparsd","date":"2009-07-16 12:16:25"},"0.4.4":{"tag":"0.4.4","author":"kasparsd","date":"2009-07-16 16:03:19"},"0.4.5":{"tag":"0.4.5","author":"kasparsd","date":"2009-07-21 15:56:53"},"0.6":{"tag":"0.6","author":"kasparsd","date":"2009-12-18 03:04:09"},"0.7":{"tag":"0.7","author":"kasparsd","date":"2009-12-18 03:56:49"},"0.7.1":{"tag":"0.7.1","author":"kasparsd","date":"2012-09-19 07:54:31"},"0.7.2":{"tag":"0.7.2","author":"kasparsd","date":"2013-03-12 11:03:55"},"0.8":{"tag":"0.8","author":"kasparsd","date":"2013-03-13 19:11:37"},"0.8.1":{"tag":"0.8.1","author":"kasparsd","date":"2013-03-15 08:32:17"},"0.8.2":{"tag":"0.8.2","author":"jamescollins","date":"2013-10-21 01:47:55"},"0.8.3":{"tag":"0.8.3","author":"jamescollins","date":"2013-10-21 06:01:53"},"1.0":{"tag":"1.0","author":"kasparsd","date":"2014-07-10 14:59:52"},"1.0.1":{"tag":"1.0.1","author":"kasparsd","date":"2014-07-15 12:11:32"},"1.0.2":{"tag":"1.0.2","author":"kasparsd","date":"2014-07-16 12:37:50"},"1.0.3":{"tag":"1.0.3","author":"kasparsd","date":"2014-11-01 11:45:03"},"1.0.4":{"tag":"1.0.4","author":"kasparsd","date":"2016-06-13 09:07:56"},"1.0.5":{"tag":"1.0.5","author":"kasparsd","date":"2017-05-08 17:25:46"},"1.0.6":{"tag":"1.0.6","author":"kasparsd","date":"2018-01-20 15:33:44"},"1.0.7":{"tag":"1.0.7","author":"kasparsd","date":"2018-06-05 18:45:48"},"1.1.0":{"tag":"1.1.0","author":"kasparsd","date":"2018-08-04 18:23:21"},"1.1.1":{"tag":"1.1.1","author":"kasparsd","date":"2020-08-26 10:41:44"},"1.2.0":{"tag":"1.2.0","author":"kasparsd","date":"2020-04-02 12:58:38"},"1.3.0":{"tag":"1.3.0","author":"kasparsd","date":"2020-04-23 14:10:18"},"1.3.1":{"tag":"1.3.1","author":"kasparsd","date":"2020-04-24 08:42:27"},"1.3.2":{"tag":"1.3.2","author":"kasparsd","date":"2023-05-18 13:20:11"},"1.3.3":{"tag":"1.3.3","author":"kasparsd","date":"2024-08-31 11:02:05"}},"upgrade_notice":{"1.2.0":"<p>PHP 5.6 is now the minimum supported version of PHP. Also included is developer tooling update and improved PHP unit tests.<\/p>"},"ratings":{"1":8,"2":1,"3":2,"4":6,"5":79},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1919865,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1919865,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1919865,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1919865,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.6","0.7","0.7.1","0.7.2","0.8","0.8.1","0.8.2","0.8.3","1.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.1.0","1.1.1","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3144633,"resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3144633,"resolution":"2","location":"plugin"}},"screenshots":{"1":"Widget Context settings at the bottom of every widget","2":"Widget Context plugin settings"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2681,25157,162,24121,241],"plugin_category":[39,43,46],"plugin_contributors":[78240,78239],"plugin_business_model":[],"class_list":["post-521","plugin","type-plugin","status-publish","hentry","plugin_tags-context","plugin_tags-logic","plugin_tags-widget","plugin_tags-widget-context","plugin_tags-widgets","plugin_category-business","plugin_category-customization","plugin_category-editor-and-writing","plugin_contributors-jamescollins","plugin_contributors-kasparsd","plugin_committers-kasparsd","plugin_committers-presetobot"],"banners":{"banner":"https:\/\/ps.w.org\/widget-context\/assets\/banner-772x250.png?rev=1919865","banner_2x":"https:\/\/ps.w.org\/widget-context\/assets\/banner-1544x500.png?rev=1919865","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/widget-context\/assets\/icon-128x128.png?rev=1919865","icon_2x":"https:\/\/ps.w.org\/widget-context\/assets\/icon-256x256.png?rev=1919865","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/widget-context\/trunk\/screenshot-1.png?rev=3144633","caption":"Widget Context settings at the bottom of every widget"},{"src":"https:\/\/ps.w.org\/widget-context\/trunk\/screenshot-2.png?rev=3144633","caption":"Widget Context plugin settings"}],"raw_content":"<!--section=description-->\n<p>Use <a href=\"https:\/\/widgetcontext.com\">Widget Context<\/a> to show and hide widgets on certain sections of your site -- front page, posts, pages, archives, search, etc. Use targeting by URLs (with wildcard support) for maximum flexibility.<\/p>\n\n<p>https:\/\/www.youtube.com\/watch?v=rEHvqsWoXAE<\/p>\n\n<h4>Premium Support<\/h4>\n\n<p>Subscribe to our <a href=\"https:\/\/widgetcontext.com\/pro\">Premium Support service<\/a> and get the PRO \ud83d\ude80 version of the plugin for free when it\u2019s launched! Your support enables consistent maintenance and new feature development, and is greatly appreciated.<\/p>\n\n<h4>Contribute<\/h4>\n\n<ul>\n<li>Suggest code improvements <a href=\"https:\/\/github.com\/kasparsd\/widget-context-wporg\">on GitHub<\/a>.<\/li>\n<li>Report bugs and suggestions on <a href=\"http:\/\/wordpress.org\/support\/plugin\/widget-context\">WordPress.org forums<\/a>.<\/li>\n<li><a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/widget-context\">Help translate<\/a> to your language.<\/li>\n<\/ul>\n\n<h4>Documentation<\/h4>\n\n<p>Widget visibility can be configured under individual widget settings under \"Appearance \u2192 Widgets\" in your WordPress administration area or through the widget editing interface in the Customizer.<\/p>\n\n<h4>Target by URL<\/h4>\n\n<p>The \"Target by URL\" is a powerful feature for targeting sections of your website based on the request URLs. It was inspired by a similar feature in the <a href=\"https:\/\/www.drupal.org\">Drupal CMS<\/a>.<\/p>\n\n<p>Use relative URLs such as <code>page\/sub-page<\/code> instead of absolute URLs <code>https:\/\/example.com\/page\/sub-page<\/code> because relative URLs are more flexible and make the logic portable between different domains and server environments.<\/p>\n\n<h4>Wildcards<\/h4>\n\n<p>Use the wildcard symbol <code>*<\/code> for matching dynamic parts of the URL. For example:<\/p>\n\n<ul>\n<li><p><code>topic\/widgets\/*<\/code> to match all posts in the widgets category, if your permalink structure is set to <code>\/topic\/%category%\/%postname%<\/code>.<\/p><\/li>\n<li><p><code>page-slug\/*<\/code> to match all child pages of the page-slug parent page.<\/p><\/li>\n<li><p>Use a trailing <code>?*<\/code> to capture URL with all query arguments such as <code>utm_source<\/code>, etc. For example, for every <code>blog\/post-slug<\/code> also include <code>blog\/post-slug?*<\/code>.<\/p><\/li>\n<\/ul>\n\n<h4>Exclude by URL<\/h4>\n\n<p>Specify URLs to ignore even if they're matched by any of the other context rules. For example, enter <code>example\/sub-page<\/code> to hide a widget on this page even when \"All Posts\" is selected under \"Global Sections\".<\/p>\n\n<!--section=installation-->\n<ul>\n<li>Search for <strong>Widget Context<\/strong> under \"Plugins \u2192 Add New\" in your WordPress dashboard.<\/li>\n<li>Widget Context settings will appear automatically under <strong>each widget<\/strong> under \"Appearance \u2192 Widgets\".<\/li>\n<li>Visit \"Settings \u2192 Widget Context\" to configure the available widget visibility contexts.<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.3.3 (August 31, 2024)<\/h4>\n\n<ul>\n<li>Mark as tested with WordPress 6.6 and PHP 8.2, see <a href=\"https:\/\/github.com\/kasparsd\/widget-context-wporg\/pull\/72\">#72<\/a>.<\/li>\n<\/ul>\n\n<h4>1.3.2 (April 27, 2020)<\/h4>\n\n<ul>\n<li>Bugfix: Fix the Widget Context settings link in the widget controls after moving the settings under the \"Appearance\" menu for usability (closer to the widget settings).<\/li>\n<li>Feature: Add a link to the plugin settings in the plugin admin list, too.<\/li>\n<\/ul>\n\n<h4>1.3.1 (April 24, 2020)<\/h4>\n\n<ul>\n<li>Bugfix: better support for URL rules with query parameters.<\/li>\n<\/ul>\n\n<h4>1.3.0 (April 23, 2020)<\/h4>\n\n<ul>\n<li>Introduce the long-awaited \"Exclude by URL\" feature to prevent certain URLs from showing or hiding a widget when it's matched by any other visibility rule.<\/li>\n<li>Introduce <a href=\"https:\/\/widgetcontext.com\/pro\">premium support<\/a> to help maintain the plugin. Subscribe now to get the PRO version of the Widget Context for free when it's launched!<\/li>\n<\/ul>\n\n<h4>1.2.0 (August 20, 2019)<\/h4>\n\n<ul>\n<li>Set PHP 5.6 as the minimum supported version of PHP to match WordPress core.<\/li>\n<li>Developer tooling update: introduce PHP autoloading, PHP unit tests with proper mocking, linting for JS, switch to Docker inside a Vagrant wrapper for local development environment and update to the latest version of WordPress coding standards (see <a href=\"https:\/\/github.com\/kasparsd\/widget-context-wporg\/pull\/50\">#50<\/a>).<\/li>\n<\/ul>\n\n<h4>1.1.1 (June 9, 2019)<\/h4>\n\n<ul>\n<li>Mark as tested with WordPress 5.2.<\/li>\n<li>Add test coverage reporting and remove <a href=\"https:\/\/wordpress.org\/plugins\/debug-bar\/\">Debug Bar<\/a> integration since it wasn't complete. Refactor plugin structure to support dependency integration. See <a href=\"https:\/\/github.com\/kasparsd\/widget-context-wporg\/pull\/47\">#47<\/a>.<\/li>\n<li>Added local development environment, see <a href=\"https:\/\/github.com\/kasparsd\/widget-context-wporg\/pull\/48\">#48<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1.0 (June 13, 2018)<\/h4>\n\n<ul>\n<li>Fix URL matching for URLs with query strings.<\/li>\n<li>Introduce unit tests for the URL context.<\/li>\n<\/ul>\n\n<h4>1.0.7 (June 5, 2018)<\/h4>\n\n<ul>\n<li>Mark as tested with WordPress 4.9.6.<\/li>\n<li>Use the localisation service provided by <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/widget-context\">WP.org<\/a>.<\/li>\n<li>Support for Composer.<\/li>\n<\/ul>\n\n<h4>1.0.6 (January 20, 2018)<\/h4>\n\n<ul>\n<li>Fix path to admin scripts and styles, props @tedgeving.<\/li>\n<li>Mark as tested with WordPress 4.9.2.<\/li>\n<\/ul>\n\n<h4>1.0.5 (May 8, 2017)<\/h4>\n\n<ul>\n<li>Confirm the plugin works with the latest version of WordPress.<\/li>\n<li>Add support for continuous testing via <a href=\"https:\/\/github.com\/xwp\/wp-dev-lib\">wp-dev-lib<\/a>.<\/li>\n<\/ul>\n\n<h4>1.0.4 (May 6, 2016)<\/h4>\n\n<ul>\n<li>Confirm the plugin works with the latest version of WordPress.<\/li>\n<li>Fix the PHP class constructor warning.<\/li>\n<li>Move the widget context settings link.<\/li>\n<li>Fix the initial context state in the customizer.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Include Russian translation (Thanks Flector!).<\/li>\n<li>Add textdomain to the remaining strings.<\/li>\n<li>Enable debugging if <a href=\"https:\/\/wordpress.org\/plugins\/debug-bar\/\">Debug Bar<\/a> is available.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Load available custom post types and taxonomies right before visibility checks to avoid PHP warnings.<\/li>\n<li>Run visibility checks only after the main post query has run. Fixes issues with WooCommerce.<\/li>\n<li>Load our CSS and Javascript files only on widget and customizer admin pages.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fix PHP warning in custom post type and taxonomy module.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Public release of the 1.0 refactoring.<\/li>\n<\/ul>\n\n<h4>1.0-beta<\/h4>\n\n<ul>\n<li>Improved settings page.<\/li>\n<\/ul>\n\n<h4>1.0-alpha<\/h4>\n\n<ul>\n<li>Refactor code to allow custom widget context modules.<\/li>\n<\/ul>\n\n<h4>0.8.3<\/h4>\n\n<ul>\n<li>Fix PHP warning that occurred on PHP 5.2.x.<\/li>\n<\/ul>\n\n<h4>0.8.2<\/h4>\n\n<ul>\n<li>Improved SSL\/HTTPS detection.<\/li>\n<li>Fix: Ensure that is_active_sidebar() &amp; is_dynamic_sidebar() don't return true when there are no widgets displayed on a page.<\/li>\n<li>Two new filters so that other plugins can override widget context display\/visibility logic.<\/li>\n<\/ul>\n\n<h4>0.8.1<\/h4>\n\n<ul>\n<li>Revert back to changing callback function in <code>$wp_registered_widgets<\/code> for attaching widget context setting controls.<\/li>\n<li>Fix the word count logic.<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>Major code rewrite and refactoring to improve performance and usability.<\/li>\n<li>Fix bugs with URL targeting and empty lines in the \"Target by URL\" textarea.<\/li>\n<\/ul>\n\n<h4>0.7.2<\/h4>\n\n<ul>\n<li>Fix PHP warnings\/notices. Props to <a href=\"http:\/\/om4.com.au\/\">James Collins<\/a>.<\/li>\n<\/ul>\n\n<h4>0.7.1<\/h4>\n\n<ul>\n<li>Confirm that the plugin works with the latest version of WP.<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<ul>\n<li>Bug fix: check for active sidebars only after $paged has been set.<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Don't check for used sidebars on each widget load. Allow absolute URLs in the URL check.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Added distinction between is_front_page() and is_home(). Remove widgets from wp_get_sidebars_widgets() if they are not being displayed -- this way you can check if a particular sidebar is empty.<\/li>\n<\/ul>\n\n<h4>0.4.5<\/h4>\n\n<ul>\n<li>Widget output callback couldn't determine the widget_id.<\/li>\n<\/ul>\n\n<h4>0.4.4<\/h4>\n\n<ul>\n<li>Fixed widget control parameter transfer for widgets that don't use the new widget api.<\/li>\n<\/ul>\n\n<h4>0.4.2<\/h4>\n\n<ul>\n<li>Initial release on Plugin repository.<\/li>\n<\/ul>","raw_excerpt":"Show and hide widgets on specific posts, pages and sections of your site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=521"}],"author":[{"embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kasparsd"}],"wp:attachment":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=521"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=521"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=521"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=521"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=521"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}