/* * https://developer.woocommerce.com/docs/cart-and-checkout-removing-checkout-fields/ * for example following is not really required for PL because if you check the $locale for PL it is like : {“PL”:{“postcode”:{“priority”:65},”state”:{“required”:false,”hidden”:true}}} … but for the BG & HU is already require=false but its not hidden=true…Continue reading
add_action(‘wp_head’, function () { if (is_page(‘branding-and-marketing-for-events’)) { ?>Continue reading
add_action(‘rest_api_init’, function () { register_rest_route(‘sg24tothemoon/v1’, ‘/completed-orders’, array( ‘methods’ => ‘GET’, ‘callback’ => ‘get_recently_completed_orders_json’, ‘permission_callback’ => ‘__return_true’, // Adjust this for security in production )); }); function get_recently_completed_orders_json(WP_REST_Request $request) { global $wpdb; // Access the global WordPress database object $hours =…Continue reading
add_action(‘wp_head’, function () { if (is_page(‘audiovisual-services-for-exhibitions-expert-solutions’)) { ?>Continue reading
add_action(‘wp_head’, function () { if (is_page(‘about-us’)) { ?>Continue reading
function custom_remove_ingredient_image_from_gallery( $gallery_image_ids, $product ) { // Get the image ID stored in the custom meta key $image_id_to_remove = get_post_meta( $product->get_id(), ‘_product_ingredients_image_id’, true ); // Check if an image ID is set and is in the gallery, then remove it…Continue reading
add_action(‘wp_head’, function () { if (is_page(‘3d-booth-rendering-and-visualization’)) { ?>Continue reading
/* Mihai 02.03.2025 , I ve manually modified the plugin file includes/class-smartbillutils.php bcs VAT computation error for the free products added by Advanced Coupons . Bug -ul descris in mail trimis de pe [email protected] catre [email protected] cu subject “bug transmitere…Continue reading
/* * this code later should be together/refactored with the ‘astra_woo_single_product_structure’ code from snippet named Others PHP ( Mihai ) */ add_action(‘wp’, ‘conditionally_remove_sticky_add_to_cart’); function conditionally_remove_sticky_add_to_cart() { // Check if we are on a single product page if (is_product()) { global…Continue reading
add_action(‘wp_head’, function () { if (is_page(‘trade-show-installation-and-dismantle-services’)) { ?>Continue reading