bicycleshop_get_meta( '_'.$parent ); //check if it is "new post" page global $pagenow; if('post-new.php' == $pagenow ) { $parent_value = $bicycleshop_a13->defaults_of_meta[$parent]; } //check operators if($operator === '='){ return $value === $parent_value; } elseif($operator === '!='){ return $value !== $parent_value; } //for all other operators return false; } /** * @param array $required dependency to check in form of 3 fields array * @param bool $is_meta is it called for meta filed or option * * @return bool */ function bicycleshop_check_control_dependencies($required, $is_meta ){ if($is_meta){ //we have more then one required condition if(is_array($required[0]) ){ foreach($required as $dependency){ if(!bicycleshop_compare_dependency($dependency)){ //some dependency were not met return false; } } //all dependencies were met return true; } //we have only one required condition else{ return bicycleshop_compare_dependency($required); } } //classic option - not supported else{ return true; } } function bicycleshop_input_help_tip($message){ ?>
color
property in CSS( green, #33FF99, rgb(255,128,0), rgba(222,112,12,0.5)
), or choose a color with a color picker. Leave an empty value to use the default theme value.', 'bicycleshop' ).''.__( 'Use the "Transparent" button to insert a transparent value.', 'bicycleshop' ) ); ?>