manager->get_control( $setting->id )->choices; // If the input is a valid key, return it; otherwise, return the default. return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); } function arise_numeric_value( $input ) { if(is_numeric($input)){ return $input; } } function arise_sanitize_custom_css( $input ) { if ( $input != '' ) { $input = str_replace( '<=', '<=', $input ); $input = wp_kses_split( $input, array(), array() ); $input = str_replace( '>', '>', $input ); $input = strip_tags( $input ); return $input; } else { return ''; } } function arise_reset_alls( $input ) { if ( $input == 1 ) { delete_option( 'arise_theme_options'); } else { return ''; } } function arise_sanitize_page( $input ) { if( get_post( $input ) ){ return $input; } else { return ''; } } ?>