Block Visibility 3.1.0 Adds WooCommerce and Easy Digital Downloads Controls – WP Tavern

When WordPress contributor and developer Nick Diego launched model 3.0 of his Block Visibility plugin earlier this yr in March, he made all the Pro features available in the free version, apart from a couple of that may take extra time. The plugin, which is used on greater than 10,000 WordPress websites, permits customers to conditionally show blocks based mostly on particular consumer roles, logged in/out, particular customers, display sizes, question strings, ACF fields, and extra.

Within the newest 3.1.0 update Block Visibility has added the lacking WooCommerce and Simple Digital Downloads (EDD) controls. These options have been initially deliberate to be merged into the free model in April however required extra improvement to enhance how they work on websites with giant product/obtain catalogs.

The WooCommerce controls embrace 18 conditional visibility guidelines with full help for merchandise with variable pricing. It permits customers to indicate or cover blocks based mostly on merchandise, cart contents, buyer buy historical past, and extra.

“There may be one notable change to the product-based guidelines,” Diego stated. “Beforehand, you needed to choose which product you needed to focus on with the visibility situations. Whereas that is nonetheless doable, Block Visibility can now detect the present product.

“This performance is extraordinarily helpful on product pages, single product templates, and product grids (Question blocks).”

The EDD controls permit customers to indicate or cover blocks based mostly on downloads, cart contents, buyer buy historical past, and extra. Since EDD doesn’t have as many block-powered layouts as WooCommerce, Diego didn’t embrace the “Detect present product” characteristic.

“The EDD visibility management presently has no product-based guidelines,” he stated. “If larger block help is added to EDD sooner or later, reminiscent of an EDD Merchandise block that helps interior blocks, anticipate extra performance.”

Block Visibility 3.1.0 additionally provides a brand new Command Palette command to “Handle Visibility Presets,” which requires WordPress 6.3+.

picture credit score: Block Visibility repository – PR #84

Diego stated he doesn’t plan on including any new integrations to the plugin however will proceed bettering present controls. Now that every one the options from the Professional model have been merged into the free plugin, customers who’ve the Professional model put in can deactivate it after upgrading to model 3.1.0.

Leave a Reply

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