Force “From” for Mail Sitewide (PHP)
add_filter(‘wp_mail_from’, function() { return ‘[email protected]’; }); add_filter(‘wp_mail_from_name’, function() { return ‘Proper NYE/NYD’; });Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘wp_mail_from’, function() { return ‘[email protected]’; }); add_filter(‘wp_mail_from_name’, function() { return ‘Proper NYE/NYD’; });Continue reading
function enqueue_isotope() { wp_enqueue_script(‘isotope’, ‘https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js’, array(‘jquery’), ‘3.0.6’, true); } add_action(‘wp_enqueue_scripts’, ‘enqueue_isotope’);Continue reading
if ( ! defined( ‘ABSPATH’ ) ) exit; // ============================================================================= // JAWS CHAT WIDGET v3.1.0 — NIRMAKO Digital Assistant // Sales + Coach modes | Lead capture form | File upload (PDF / Image) // Foundation hooks for DISC analysis…Continue reading
/** * SEO Plugin Conflict Fixes * * Suppresses duplicate meta tags from themes/plugins when a proper * SEO plugin is active and in charge. Add new fixes as needed. */ /** * Check if Rank Math is active and…Continue reading
/** * Charitable — Force PayPal Legacy gateway on this site. * * Overrides Charitable Pro 1.8.15+ PayPal tier detection at read-time * so the legacy `paypal` gateway stays visible (and PayPal Commerce stays * hidden) regardless of what was…Continue reading
// Force localization for all feeds add_filter(‘adt_product_feed_localize_price_args’, function($args) { $args[‘decimal_separator’] = ‘.’; $args[‘thousand_separator’] = ‘,’; return $args; }); add_filter(‘adt_pfp_localize_price_iso4217_feeds’, function($feeds) { // Remove all Google feeds from ISO4217 formatting return array_filter($feeds, function($feed) { return strpos($feed, ‘google_’) !== 0; }); });Continue reading
//Google Feeds add_filter(‘adt_pfp_localize_price_iso4217_feeds’, function($feeds) { // Remove all Google feeds from ISO4217 formatting return array_filter($feeds, function($feed) { return strpos($feed, ‘google_’) !== 0; }); }); //Facebook Feeds add_filter(‘adt_pfp_localize_price_iso4217_feeds’, function($feeds) { // Remove all Facebook feeds from ISO4217 formatting return array_filter($feeds, function($feed)…Continue reading
// Force localization for all feeds add_filter(‘adt_product_feed_localize_price_args’, function($args) { $args[‘decimal_separator’] = ‘.’; $args[‘thousand_separator’] = ‘,’; return $args; });Continue reading
/** * WPForms Quiz — Save results as Entry Note * * Automatically adds a note to each quiz entry with the quiz results. * Supports all three quiz types: Graded, Personality, and Weighted. * * @link https://wpforms.com/developers/wpforms_process_entry_save/ */ /**…Continue reading
// 1. Process the automatic entry submission on click add_action(‘wp_loaded’, ‘wpcode_process_manual_log_187’); function wpcode_process_manual_log_187() { if (!isset($_GET[‘trigger_log’]) || !isset($_GET[‘parent_id’])) { return; } $parent_entry_id = intval($_GET[‘parent_id’]); if (empty($parent_entry_id)) { return; } $form_id = 187; $current_user_id = get_current_user_id(); // Map form payload variables…Continue reading