HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/rockyroadprintin/public_html/wp-content/themes/consulting/inc/woocommerce_configuration.php
<?php

remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );

if ( ! function_exists( 'consulting_shop_loop_item_author' ) ) {

	function consulting_shop_loop_item_author() { ?>
		<div class="author"><?php printf(esc_html__( 'by %s', 'consulting' ), get_the_author()); ?></div>
	<?php }
}

add_action( 'woocommerce_shop_loop_item_title', 'consulting_shop_loop_item_author', 10 );

if ( ! function_exists( 'consulting_before_shop_loop_wr_start' ) ) {
	function consulting_before_shop_loop_wr_start() { ?>
		<div class="woocommerce_before_shop_loop">
	<?php }
}

add_action( 'woocommerce_before_shop_loop', 'consulting_before_shop_loop_wr_start', 15 );

if ( ! function_exists( 'consulting_before_shop_loop_wr_end' ) ) {
	function consulting_before_shop_loop_wr_end() { ?>
		</div>
	<?php }
}

add_action( 'woocommerce_before_shop_loop', 'consulting_before_shop_loop_wr_end', 40 );

add_filter( 'woocommerce_show_page_title', '__return_false' );
add_filter( 'woocommerce_prevent_automatic_wizard_redirect', '__return_true' );
add_filter( 'loop_shop_per_page', 'shop_products_per_page', 20 );
add_filter( 'loop_shop_columns', 'consulting_products_loop_columns' );

function shop_products_per_page() {
    return consulting_theme_option( 'shop_products_per_page', 9 );
}

if ( ! function_exists( 'consulting_products_loop_columns' ) ) {
	function consulting_products_loop_columns() {
		return 3;
	}
}

add_filter( 'woocommerce_output_related_products_args', 'consulting_related_products_args' );

function consulting_related_products_args( $args ) {
	$args['posts_per_page'] = 3;
	$args['columns']        = 3;

	return $args;
}

add_action( 'after_setup_theme', 'stm_woo_setup' );

function stm_woo_setup() {
    add_theme_support( 'wc-product-gallery-zoom' );
    add_theme_support( 'wc-product-gallery-lightbox' );
}