/**
* Child theme stylesheet
*/
function child_theme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() .'/style.css' , array('parent-style'));
}
add_action( 'wp_enqueue_scripts', 'child_theme_styles' );
function bitblaze_localize_setup() {
load_child_theme_textdomain( 'peakshops', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'bitblaze_localize_setup' );
function fooevents_display_day_in_shop_listing() {
global $post;
$product = wc_get_product( $post->ID );
$fooevents_time = $product->get_meta( 'WooCommerceEventsDate' );
if( $fooevents_time ) {
printf(
'%s',
esc_html( $fooevents_time )
);
}
}
add_filter( 'woocommerce_before_shop_loop_item', 'fooevents_display_day_in_shop_listing', 1 );