/** * Exclude specific products from appearing in their parent category. */ add_action(‘woocommerce_product_query’, ‘exclude_specific_products_from_parent_category’); function exclude_specific_products_from_parent_category($q) { // Only apply this on the parent category archive page if (!is_product_category(‘telt-og-pavilloner’)) { // Replace with your parent category slug return; } //…Continue reading
function rd_get_valid_received_order() { static $order = null; static $checked = false; if ( $checked ) { return $order; } $checked = true; if ( ! function_exists( ‘wc_get_order’ ) ) { return null; } global $wp; if ( empty( $wp )…Continue reading
add_action( ‘woocommerce_admin_order_data_after_billing_address’, ‘custom_customer_history_search_button_blue’, 10, 1 ); function custom_customer_history_search_button_blue( $order ) { // Vásárló e-mail címének lekérése $customer_email = $order->get_billing_email(); if ( $customer_email ) { // A keresési URL összeállítása $search_url = admin_url( ‘edit.php?s=’ . urlencode( $customer_email ) . ‘&post_type=shop_order’ );…Continue reading
/** * Remove WC Vendors “Apply to become a vendor” checkbox from the WooCommerce default customer signup form. */ add_action( ‘init’, ‘wcv_remove_vendor_registration_checkbox’, 99 ); function wcv_remove_vendor_registration_checkbox() { global $wp_filter; $hook = ‘woocommerce_register_form’; if ( isset( $wp_filter[ $hook ] ) )…Continue reading