if ( function_exists( 'oxygen_vsb_register_condition' ) ) {
if ( ! class_exists( 'Mobile_Detect' ) ) {
return;
}
oxygen_vsb_register_condition(
// Condition Name
'Is Mobile',
// Values: The array of pre-set values the user can choose from.
// Set the custom key's value to true to allow users to input custom values.
array(
'options' => array( 'true', 'false' ),
'custom' => false
),
// Operators
array( '==' ),
// Callback Function: Name of function that will be used to handle the condition
'wpdd_is_mobile_fallback',
// Condition Category: Default ones are Archive, Author, Other, Post, User
'Other'
);
}