Skip to content

Snippets for creating conditional blocks based WooCommerce products/cart

Notifications You must be signed in to change notification settings

conditionalblocks/woocommerce-conditions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Conditional Blocks 2.0 + WooCommerce

Snippets for creating conditional blocks based WooCommerce products/cart

These example snippets are based on the custom PHP Logic condition in Conditional Blocks 2.0

  1. Create the custom function first using the examples.
  2. Create the block that you want to conditionally display inside the WordPress block editor.
  3. Select the block & open the Condition Builder. Add the PHP logic condition the block with your custom function, you can use any parameters.

Example custom PHP logic

Example of conditional block being displayed

About

Snippets for creating conditional blocks based WooCommerce products/cart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages