add_filter( ‘woocommerce_product_description_heading’, ‘custom_change_description_heading_for_specific_categories’ ); function custom_change_description_heading_for_specific_categories( $heading ) { global $product; if ( ! is_product() || ! $product instanceof WC_Product ) { return $heading; } // Check if product has either ‘meals’ or ‘snacks’ category if ( has_term( [ ‘meals’,…Continue reading
add_action( ‘template_redirect’, ‘rd_preload_marked_theme_background_images’, 1 ); function rd_preload_marked_theme_background_images() { if ( is_admin() || wp_doing_ajax() || wp_is_json_request() ) { return; } if ( defined( ‘REST_REQUEST’ ) && REST_REQUEST ) { return; } if ( is_feed() || is_trackback() || is_robots() || is_embed() )…Continue reading
add_action(‘template_redirect’, function () { if (is_admin()) return; global $wp; $request_path = trim($wp->request, ‘/’); // Skip if already under /stories/ if (strpos($request_path, ‘stories/’) === 0) return; // Only run on 404s (old URLs) if (is_404()) { // Extract slug (last part…Continue reading
/* * Snippet: People Group Profile Page — Field Loader v2 * Type: php * Location: frontend_cl * Tags: generate-shortcodes, people-group-profile, arcgis, mysql-sync * * Fetches live people group data from the pgOrgPointsStaging ArcGIS service, * serves the data via…Continue reading
/** * ============================================================ * GUARDEDPAY PRO — Phase 1 Diagnostic (TEMPORARY) * ============================================================ * * PURPOSE: Detects child theme status and scans checkout output * for deprecated GuardedPay copy that needs removal. * * INSTALL: Add via Code Snippets plugin…Continue reading
add_filter( ‘show_recent_comments_widget_style’, ‘__return_false’ ); add_filter( ‘use_default_gallery_style’, ‘__return_false’ );Continue reading
/** * WooCommerce Checkout – Uppercase & Remove Accents * Backend sanitization για ασφάλεια */ // Αφαίρεση τόνων function wv_remove_greek_accents($string) { $accents = array( ‘ά’ => ‘α’, ‘έ’ => ‘ε’, ‘ή’ => ‘η’, ‘ί’ => ‘ι’, ‘ό’ => ‘ο’, ‘ύ’…Continue reading
function custom_enqueue_scripts() { wp_add_inline_script( ‘jquery’, // Cargar después de jQuery ” document.addEventListener(‘DOMContentLoaded’, function () { const toggleIcon = document.getElementById(‘show-search-icon’); const searchForm = document.getElementById(‘search-form-container’); if (toggleIcon && searchForm) { toggleIcon.addEventListener(‘click’, function () { if (searchForm.style.display === ‘none’ || searchForm.style.display === ”)…Continue reading