This file contains hidden or 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 hidden or 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
// Get field from current user's profile | |
function get_user_field( $field_name ) { | |
if( !$field_name ) { return; } | |
$user = "user_" . get_current_user_ID(); | |
if( $field_name ) { | |
return get_field( $field_name, $user ); | |
} |
This file contains hidden or 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; |
OlderNewer