300, 'height' => 300, 'crop' => 0, ); } ); // Remove Heading in Content Description Tab Woo add_filter('woocommerce_product_description_heading', '__return_null'); add_action('wp_enqueue_scripts', array( $this, 'nighty_enqueue_scripts_woo' ) ); } function nighty_woocommerce_show_title_shop_page( $param ){ if( ( is_shop() || is_product_category() || is_product_tag() ) && get_theme_mod( 'woo_archive_show_title', 'yes' ) == 'yes' ){ return true; } return false; } function nighty_woocommerce_template_loop_product_cat(){ $id = get_the_id(); $cats = get_the_terms( $id, 'product_cat') ? get_the_terms( $id, 'product_cat') : '' ; $value_cats = array(); if ( $cats ) { foreach ( $cats as $value ) { $value_cats[] = is_object($value) && $value->term_id ? '' . $value->name . '' : ""; } } echo implode(' ', $value_cats); } function nighty_woocommerce_before_main_content(){ ?>
'', 'prev_text' => '', ); $agrs = array_merge( $array, $args ); return $agrs; } function nighty_change_number_product_related( $agrs ){ $agrs_setting = [ 'posts_per_page' => apply_filters( 'number_product_realated_posts_per_page', 3 ), 'columns' => apply_filters( 'number_product_realated_columns', 3 ), ]; $agrs = array_merge( $agrs, $agrs_setting ); return $agrs; } function nighty_woocommerce_before_customer_login_form(){ ?>