This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( function_exists('oxygen_vsb_register_condition') ) { | |
add_action('init', 'register_post_type_condition_acfe', 99); | |
function register_post_type_condition_acfe() { | |
$post_types = array_values(get_post_types(array('public'=>true))); | |
global $oxy_condition_operators; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( function_exists('oxygen_vsb_register_condition') ) { | |
global $oxy_condition_operators; | |
// Condition to check if a URL parameter is present. | |
oxygen_vsb_register_condition('URL Param Exists', array('options'=>array(), 'custom'=>true), array('--'), 'oxy_url_param_exists_callback', 'Other'); | |
function oxy_url_param_exists_callback($value, $operator) { | |
if( isset($_GET[$value]) && $_GET[$value] ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( function_exists('oxygen_vsb_register_condition') ) { | |
global $oxy_condition_operators; | |
// Condition to check if a URL parameter is present. | |
oxygen_vsb_register_condition('Access Code', array('options'=>array(), 'custom'=>true), $oxy_condition_operators['string'], 'oxy_access_code_callback', 'Other'); | |
function oxy_access_code_callback($value, $operator) { | |
if( $operator == '==') { |
OlderNewer