Register New Conditional Logic
To register a new conditional logic, developers should use the following code:
function register_conditional_logic( $conditional_logics ) {
$conditional_logics->register( NewConditionalLogic::get_instance()->get_logic_data() );
}
add_action( 'yaymail_register_conditional_logics', 'register_conditional_logic' );This code attaches to the yaymail_register_conditional_logics action hook. It is used to register new conditional logic by passing an array value of instance class.
Last updated
Was this helpful?