|
/ Documentation /Developer Documentation/Filter Hooks/ srfm_conditional_logic_allowed_operators

srfm_conditional_logic_allowed_operators

Description

Filters the list of operators allowed in conditional logic rules (e.g. ==, !=, includes, startWith). (Pro only)

Parameters

  • $operators (array) – The allowed operators.

Filter Source

PHP
/**
* filter source (Pro) inc/extensions/conditional-logic.php
*/
$operators = apply_filters( 'srfm_conditional_logic_allowed_operators', [ '==', '!=', 'null', ... ] );

Filter Usage

PHP
add_filter( 'srfm_conditional_logic_allowed_operators', 'my_callback', 10, 1 ); function my_callback( $operators ) { 
return $operators; 
}

Filter Example

PHP
add_filter( 'srfm_conditional_logic_allowed_operators', 'my_callback', 10, 1 ); function my_callback( $operators ) {
 return $operators; 
 }
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top