Activer automatiquement les extensions de formulaire
add_action('init', function () { $extensions = [ 'fluent-crm/fluent-crm.php', 'wp-html-mail/wp-html-mail.php', 'wpforms-lite/wpforms.php', // si installé 'surecart/surecart.php', // pour…
om.Html.shortcodes
document.addEventListener('om.Html.shortcodes', function(event) { console.log(event.detail.Html); console.log(event.detail.Campaign); } );
om.Form.validate
document.addEventListener('om.Form.validate', function(event) { // ...custom validation code here if (validateError) { event.detail.Form.errors.validate.push('This is the error message')…
disable webfonts
document.addEventListener('om.Campaign.init.preload', function(event) { var campaign = event.detail.Campaign; campaign.settings.preload = false; });
修改WP Memory等參數
// 設定 WordPress 記憶體限制 define('WP_MEMORY_LIMIT', '256M'); define('WP_MAX_MEMORY_LIMIT', '512M'); // 設定 PHP 執行層的上傳限制 @ini_set('upload_max_filesize', '64M'); @ini_set('post_max_size', '64M');…
om-translate-copied.js
document.addEventListener('om.Main.init', function (evt) { var Strings = evt.detail._utils.strings; // Replace ¡Copiada! below with the text you…
Fix Divi Post Content Width
Paste this directly into the post content module of the theme builder template.
Limit Revisions
/** * Limit WordPress revisions to 5 for all post types. */ add_filter('wp_revisions_to_keep', function ($num, $post)…
ACF_KEYSMST_MSTCASECPT – TAB – ADMINISTRATIVE (v3.0 Modular)
/** * ============================================ * MST CASE - TAB: ADMINISTRATIVE (v3.0 Modular) * ============================================ * * Purpose:…
WpPages_DIR_AD_SYNC – WordPress Pages Sync Engine
Description: Comprehensive sync functionality for pages with full content analysis * Location: Run Everywhere * Priority:…
Fully Disable Comments & Trackbacks (The "Nuclear" Option)
* Fully Disable Comments & Trackbacks (The "Nuclear" Option) * Optimized for performance and UI clarity.
Charitable: Force PayPal Legacy gateway
Overrides Charitable Pro 1.8.15+ PayPal tier detection at read-time so the legacy `paypal` gateway stays visible…