/** * Gravity SMTP: BCC every outgoing email to the archive mailbox * * WPCode: PHP Snippet, Insert Method “Auto Insert”, Location “Run Everywhere”. * * Hooks gravitysmtp_after_connector_init, which only Gravity SMTP fires: once per send attempt, * from Connector_Base::init()…Continue reading
function rd_meta_use_synchronous_product_save() { if ( ! function_exists( ‘facebook_for_woocommerce’ ) ) { return; } $integration = facebook_for_woocommerce()->get_integration(); $scheduled = array( $integration, ‘schedule_product_sync’ ); $direct = array( $integration, ‘on_product_save’ ); $hook = ‘woocommerce_process_product_meta’; $priority = has_action( $hook, $scheduled ); if ( false…Continue reading
terraform { required_providers { stripe = { source = “stripe/stripe” version = “0.1.3” } } } provider “stripe” { # API key is read from STRIPE_API_KEY environment variable # Alternatively, set it explicitly (not recommended for production) # api_key =…Continue reading
// Minimal Login Form / Kiri Vadivelu / 2026 // Hide Login Errors add_filter( ‘login_errors’, function ( $error ) { // Customize the Message return ‘Something is wrong!’; } ); // Remove Login Links add_action( ‘login_head’, ‘remove_login_links’ ); function remove_login_links()…Continue reading
/** * 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
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 – 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 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