Type: php
Print Invoice – Fix Garbled Bold Japanese Text in PDFs
/** * Print Invoice & Delivery Notes: fix garbled bold Japanese text in PDFs * * WPCode: PHP Snippet, Insert Method “Auto Insert”, Location “Run Everywhere”. * * The plugin’s “Bold” font style setting emits CSS font-weight:600 * (includes/services/template/class-template-style.php:399), and…Continue reading
Disable WP Store Locator Default Single Blog Post Template
function rd_disable_wpsl_default_single_location_output( $skip ) { return is_singular( ‘wpsl_stores’ ) ? true : $skip; } add_filter( ‘wpsl_skip_cpt_template’, ‘rd_disable_wpsl_default_single_location_output’ );Continue reading
SupportCandy – WOO Order Field with Order Date and Total
/** * SupportCandy – WooCommerce: show order date and total in the “WOO Order” field (Refs #8048) * * WPCode: PHP Snippet, Insert Method “Auto Insert”, Location “Run Everywhere”. * * Replaces the source modification formerly made to * wpsc-woocommerce/includes/custom-field-types/class-wpsc-cf-woo-order.php…Continue reading
Popup inventario
/** * Popup temporaneo – Avviso sospensione spedizioni * WPCode – PHP Snippet */ add_action(‘wp_footer’, function () { // Data oltre la quale il popup non viene più mostrato. // Formato: YYYY-MM-DD $scadenza = ‘2026-10-05’; if (current_time(‘Y-m-d’) > $scadenza) {…Continue reading
Untitled Snippet
Sabor Elegante | Recetas de Cocina Fáciles y Deliciosas 🍳 Sabor Elegante Inicio Recetas Nosotros Contacto Privacidad Cocina con Pasión Recetas fáciles, saludables y elegantes para todos los días Ver Recetas Espacio Publicitario 728×90 – Google AdSense Italiana Pasta Alfredo…Continue reading
Force Login to Delivery Site
/** * Require login for the front end, cache-safe. * Put in wp-content/mu-plugins/force-login.php */ add_action( ‘template_redirect’, function () { // Public exceptions. These go through normal caching. if ( is_page( array( ‘store-login’, ‘register’, ‘change-password’ ) ) ) { return; }…Continue reading
Block Blast Free
Snow Rider
Hide Plugin Description
function hide_plugin_description_column( $columns ) { // Remove the ‘Description’ key from the columns array if ( isset( $columns[‘description’] ) ) { unset( $columns[‘description’] ); } return $columns; } add_filter( ‘manage_plugins_columns’, ‘hide_plugin_description_column’ );Continue reading