Meta Box Conditional Logic is a powerful extension for the Meta Box framework that allows you to show/hide meta boxes, custom fields, and even generic HTML elements based on specific values or conditions.
Meta Box Conditional Logic is a powerful extension for the Meta Box framework that allows you to show/hide meta boxes, custom fields, and even generic HTML elements based on specific values or conditions.
This is EXACTLY the same product as distributed by the developer. Sales Page
The extension provides visibility control for three primary object types:
Meta Boxes: Hide or show entire containers.
Custom Fields: Toggle individual fields (including inside Groups or Cloneable fields).
HTML Elements: Toggle standard WordPress UI elements (e.g., the “Publish” box, Categories, or specific IDs/classes).
It supports a robust set of operators to handle diverse data types (text, dates, numbers):
Equality: =, !=
Comparison: >, >=, <, <=
String: contains, not contains, starts with, ends with
Array/Selection: in, not in
Range: between, not between (ideal for dates and numbers)
Regex: match
If you are registering meta boxes via PHP, you use the visible or hidden keys within your field or meta box array.
By default, multiple conditions follow AND logic. You can nest arrays to create complex rules.
Groups & Nesting: Works seamlessly with the MB Groups extension. You can trigger visibility for fields inside a group based on a field outside the group, or vice versa.
Gutenberg Compatibility: Fully supports the WordPress Block Editor.
Custom Conditions API: Developers can hook into the logic to create custom visibility rules that aren’t available out-of-the-box.
Settings Pages: Compatible with MB Settings Page to create dynamic plugin/theme options panels.