Type: php
Minimal WordPress Search
add_filter( ‘post_search_columns’, function( $columns ) { return [ ‘post_title’ ]; } );Continue reading
Kitchen Renovation Estimator Edmonton
(function(){ /* ===== Gravity Forms settings: replace the numbers with your form and field IDs ===== */ var JKR_GF={ formId: 0, /* e.g. 7 */ fields:{ /* Hidden field IDs from the form editor */ home:0, scope:0, budget:0, contingency:0, total:0,…Continue reading
Print Invoice – Keep Untouched Template Labels Translatable
/** * Print Invoice & Delivery Notes: keep untouched template labels translatable * * WPCode: PHP Snippet, Insert Method “Auto Insert”, Location “Run Everywhere”. * * Templates::all() (includes/helpers/class-templates.php) merges the saved wcdn_template_settings * over defaults built with __() at request…Continue reading
Gravity SMTP – BCC All Emails to Archive
/** * 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
[TEMP BUG FIX] Meta for WooCommerce WC 11 Save Bridge
function rd_register_meta_woocommerce_11_save_bridge() { if ( ! defined( ‘WC_VERSION’ ) || ‘11.1.2’ !== WC_VERSION || ! function_exists( ‘facebook_for_woocommerce’ ) ) { return; } add_action( ‘woocommerce_admin_process_product_object’, ‘rd_schedule_meta_product_sync_on_wc_11’, 40 ); } add_action( ‘plugins_loaded’, ‘rd_register_meta_woocommerce_11_save_bridge’, 20 ); function rd_schedule_meta_product_sync_on_wc_11( $product ) { if (…Continue reading
Mãe que inspira pixel
Terraform file
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
// 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() { add_filter( ‘login_site_html_link’, ‘__return_empty_string’ ); // Back to Link…Continue reading