Insert Custom Search Into Header
$search = do_shortcode(‘[ivory-search id=”2185″ title=”Custom Search Form”]’); $search_json = json_encode($search); echo ‘‘;Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
$search = do_shortcode(‘[ivory-search id=”2185″ title=”Custom Search Form”]’); $search_json = json_encode($search); echo ‘‘;Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
/* * Snippet #36 (ID 35273): People Group Profile – CSS Class for matching religion to a color * Type: php * Status: publish * Location: 1 * Modified: 2025-07-28 17:52:37 */ function custom_rlgn_font_color_style() { if (is_singular()) { $rlgn =…Continue reading
/** * Snippet Title: PG Profile — Dig Deeper slider outside label fix * Description: Fixes unreadable percentage labels in the UAGB Counter Bars blocks * in the Religion and Language Dig Deeper sections on PG profile pages. * *…Continue reading
/** * Send Google Drive URLs to Google Sheets. * * Setup requirements: * – Entry storage ON (Disable storing entry information in WordPress = OFF) * – Purge Entries Automatically = ON, set to 1 day * – Google…Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
/** * Plugin Name: MA Admin Quick Nav * Description: Admin Bar Quick Navigation for Post Types * Version: 2.0.2 * Author: Matthias Altmann * Author URI: https://www.altmann.de/ * Copyright: © 2024-2026, Matthias Altmann * Requires at least: 5.8 *…Continue reading
add_action(‘template_redirect’, function () { if (! is_front_page()) { return; } echoContinue reading
// Stap 1: Verwijder de standaard related products remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 ); // Stap 2: Toon cross-sells aangevuld met related products tot totaal van 4 add_action( ‘woocommerce_after_single_product_summary’, function() { global $product; if ( ! $product || ! is_a( $product,…Continue reading
// get_mb_relationships_dat // Pour l’appeler dans le code : // —— // Exemple 1 // En haut de fichier // {% set prefectures_liees = mb.get_mb_relationships_data(post.ID, ‘tsunami_to_prefectures’, ‘prefecture’, ‘from’, [‘code_pref’, ‘population’]) %} // Puis, pour l’affichage // {% set pref_textes =…Continue reading