Description

The Conditional Logic addon adds conditional display rules to Meta Box custom fields, controlling the visibility of meta boxes, field groups, and even editor HTML elements (such as the Publish module or Tags) according to the value of other fields, post category, format, title, or the state of form elements. Aimed at those who build complex editorial panels in WordPress, it supports operators such as equal, not equal, greater than, less than, contains, starts with, ends with, is in, and between, combinable into compound conditions.

Main Features of Conditional Logic

  • Granular visibility control
    Shows or hides meta boxes, individual fields, and editor DOM elements on demand.
  • Complete logical operators
    Accepts equal, not equal, greater than or equal, less than or equal, contains, starts with, ends with, is in, and between.
  • Condition negation
    The “Not” modifier inverts any operator to create exclusion rules without rewriting the logic.
  • Multiple triggers per context
    Reacts to values from other fields, post categories, format, title, and form elements.
  • Concise rule syntax
    Declares simple or compound conditions in the field configuration array, without additional JavaScript.

Benefits of Conditional Logic

  • Cleaner editorial panel
    Editors only see fields relevant to the context, reducing visual clutter in the admin.
  • Fewer input errors
    Irrelevant fields remain hidden, preventing conflicting or redundant data in posts and CPTs.
  • Branching editorial flows
    Enables forms that adapt to the writer’s choice, without requiring separate post types.
  • Reusable logic
    Rules stay centralized in the field declaration, easy to version together with the rest of the code.

Who Is Conditional Logic For?

  • Those who already use Meta Box to register custom fields and need to hide or show editor blocks based on the entered content.
  • Those who maintain editorial panels with many fields and want to simplify the editing screen for writers and end clients.
  • Developers who deliver custom WordPress projects and need branching forms without creating additional CPTs.

How to Download Conditional Logic

Conditional Logic is available for download here at Ultrapack. After saving the .zip file, go to Plugins > Add New > Upload Plugin, select the package, and activate the add-on with Meta Box already installed. Conditional options will then appear in the declaration of fields registered via Meta Box.

Coupled with Meta Box, Conditional Logic replaces the alternative of maintaining entire editing screens separated by content type, concentrating the logic directly in the field definitions. The combination of varied operators, negation, and triggers by taxonomy or format covers editorial scenarios that would require custom JavaScript code or additional hooks in the WordPress admin.

Frequently asked questions

Is the Meta Box Conditional Logic plugin GPL?

Yes. Meta Box Conditional Logic is distributed under the GPL (GNU General Public License). You may legally use, modify and redistribute it on as many sites as you want.

Can I use the Meta Box Conditional Logic plugin on more than one site?

Yes. There is no domain limit: you can install Meta Box Conditional Logic on as many sites (domains) as you wish.

How much does the Meta Box Conditional Logic plugin cost at Ultrapack?

O Meta Box Conditional Logic sai por US$ 2,89 as a single purchase, and it is also included in the subscription plans starting at US$ 11,44/mês (VIP I).

Does the Meta Box Conditional Logic plugin include updates?

Sim. Cada nova versão do Meta Box Conditional Logic é sincronizada automaticamente no Ultrapack. Você baixa a última versão quando quiser, e os assinantes atualizam direto do painel do WordPress com o UAU (Ultrapack Auto Updater).

Is the Meta Box Conditional Logic plugin safe to download and install on my WordPress?

Sim, pode baixar com tranquilidade. Cada versão do Meta Box Conditional Logic é escaneada antes da publicação pelo motor próprio do Ultrapack (UltraHub), que combina ClamAV e regras YARA, tecnologias usadas para detectar malware e código malicioso. Assim você instala no seu WordPress sem preocupação.