Skip to content

Instantly share code, notes, and snippets.

function business_field_pro_child_add_custom_font($choices){
$choices['libre-baskerville'] = array(
'name' => 'Libre Baskerville',
'label' => "'Libre Baskerville', serif;",
);
return $choices;
function wp_travel_child_customize_currency_symbol( $currency_symbols ) {
if ( is_array( $currency_symbols ) ) {
foreach ( $currency_symbols as $code => $text ) {
if ( 'USD' == $code ) {
$currency_symbols[$code] = 'USD$';
}
function travel_log_child_remove_cat_titles($title) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
function wp_travel_customize_default_country_setting(){
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#wp-travel-country > option[value="AU"]').attr("selected",true);
});
function wp_travel_customize_travel_info_section (){
return __( '%d your text', 'wp-travel' );
}
add_filter ('wp_travel_template_group_size_text','wp_travel_customize_travel_info_section');
function travel_log_child_update_option_vals( $value, $old_value ) {
update_option( 'theme_mods_' . get_template(), $value );
return $old_value; // prevent update to child theme mods
}
function travel_log_child_customizer_default_vals_update( $default ) {
return get_option( 'theme_mods_' . get_template(), $default );
}
function travel_log_child_customizer_parent_options_import() {
add_filter( 'wp_travel_booking_form_fields', 'wp_travel_customized_form_fields' );
function wp_travel_customized_form_fields( $fields ) {
// add new form field
$fields['terms_and_conditions'] = array(
'type' => 'checkbox',
'label' => __( 'Terms and Conditions', 'wp-travel' ),
'name' => 'wp_travel_terms_and_conditions',
<?php
/**
* Cart Page
*
* This template can be overridden by copying it to yourtheme/woocommerce/cart/cart.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
function travel_log_child_formatted_currency(){
global $post;
$post_id = $post->ID;
if ( wp_travel_is_cart_page() ) {
if ( isset( $_REQUEST['trip_id'] ) && '' != $_REQUEST['trip_id'] ) {
$post_id = $_REQUEST['trip_id'];
function travel_log_front_page_slider_wrap() {
if ( ! is_front_page() || is_home() ) {
return;
}
$enabled = travel_log_get_theme_option( 'home_slider_enable' );
if ( ! is_customize_preview() && false === $enabled && ! is_home() ) {