You will need: – A website with an [embedded bot](/webchat/get-started/quick-start.md) using Webchat v3.3 – Basic familiarity with HTML First, get your Webchat element ID: 1. Select your bot from your workspace. 2. Go to **Webchat > Deploy Settings**. 3. Under…Continue reading
add_action( ‘wp_footer’, function () { echo ‘ Free local delivery on orders over $30. ‘; } );Continue reading
function rd_meta_catalogue_use_short_description( $description, $product_id ) { $product = wc_get_product( $product_id ); if ( ! $product ) { return $description; } if ( $product->is_type( ‘variation’ ) ) { $product = wc_get_product( $product->get_parent_id() ); if ( ! $product ) { return $description;…Continue reading
/* * WPCode-Snippet “lokalstolz | Reihenfolge per Ziehen” (Typ php, Location everywhere, Auto-Insert an, Prioritaet 10) * Allgemein, Kandidat fuer die WPCode-Bibliothek (stack/wpcode-bibliothek.md, “Kandidaten”); laeuft bis zur Uebertragung * als Projekt-Snippet. Nur im Backend, an der ausgelieferten Seite aendert sich…Continue reading
// Disable Emoji Script / Kiri Vadivelu / 2026 function disable_emoji_script() { // Remove the inline emoji detection script from the frontend head remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7); // Remove the emoji detection script from the admin area remove_action(‘admin_print_scripts’, ‘print_emoji_detection_script’); // Remove…Continue reading
// Disable Comments Link / Kiri Vadivelu / 2026 add_filter(‘feed_links_show_comments_feed’, ‘__return_false’);Continue reading
// Cache Exclude List / Kiri Vadivelu / 2026 function cache_exclude_list() { // Array of slug fragments to exclude from cache $excluded_slugs = [ ‘/red/’, ‘/green/’, ‘/blue/’, ]; // Ensure its a non-empty array if ( ! is_array( $excluded_slugs )…Continue reading
// Cache Exclude Slug / Kiri Vadivelu / 2026 function cache_exclude_slug() { // Match any URL that contains this substring $slug_fragment = ‘/category/’; // partial slug value if ( str_contains( $_SERVER[‘REQUEST_URI’], $slug_fragment ) ) { if ( ! defined( ‘DONOTCACHEPAGE’…Continue reading
// Allow font file uploads (administrators only) add_filter( ‘upload_mimes’, function ( $mimes ) { if ( current_user_can( ‘manage_options’ ) ) { $mimes[‘woff2’] = ‘font/woff2’; $mimes[‘woff’] = ‘font/woff’; } return $mimes; } ); // WordPress double-checks the file type; make sure…Continue reading