Category: Admin
Defer some scripts – Hcaptcha, Callrail
function defer_some_scripts($tag, $handle, $src) { $is_hcaptcha_script = str_starts_with( $handle, ‘hcaptcha’ ); $is_callrail_swap_script = str_starts_with( $handle, ‘swapjs’); $should_defer = $is_hcaptcha_script || $is_callrail_swap_script; if ( $should_defer ) { $tag = str_replace(‘>‘, ‘ defer>‘, $tag); } return $tag; } add_filter(‘script_loader_tag’, ‘defer_some_scripts’, 10, 3);Continue reading
NEXTSTEP SHORTCODE
/** * Compliance Calendar – Cron Jobs (Overdue Detection) * Checks for overdue compliance items and sends notifications via GHL webhook * * @package BHA_Portal * @subpackage Compliance_Calendar * @version 6.1 * * WPCODE SETTINGS: * – Location: Run Everywhere…Continue reading
GravityWiz_DateMergeTags – Gravity Wiz // Gravity Forms // Format Date Merge Tags
/** * Gravity Wiz // Gravity Forms // Format Date Merge Tags * https://gravitywiz.com/gravity-forms-date-merge-tags/ * * Adds merge tag modifiers for formatting date merge tags using PHP Date Formats. * * Plugin Name: Gravity Forms — Format Date Merge Tags…Continue reading
[DEBUG] SiteGround Purge Scheduling
add_filter(‘pre_schedule_event’, function ($pre, $event /*, $wp_error */) { if (is_object($event) && isset($event->hook) && $event->hook === ‘siteground_optimizer_purge_cron_cache’) { $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 18); $lines = []; foreach ($bt as $f) { $fn = (isset($f[‘class’]) ? $f[‘class’] . ($f[‘type’] ?? ”) : ”)…Continue reading
Untitled Snippet
Insert Pwa-Header Sendroit IA
WpPages_DIR_AD_SYNC – WordPress Pages Sync Engine
/** * WPCode Snippet: WordPress Pages Sync Engine * Description: Comprehensive sync functionality for pages with full content analysis * Location: Run Everywhere * Priority: 20 * * FEATURES: * – Manual sync via admin bar button * – Auto-sync…Continue reading
WpPages_DIR_AC_RAPI – Expose WordPress Pages Sync ACF Fields to REST API
/** * WPCode Snippet: Expose WordPress Pages Sync ACF Fields to REST API * Description: Makes WordPress Pages data accessible via Application Password authentication * Location: Run Everywhere * Priority: 15 */ defined( ‘ABSPATH’ ) || exit; /** * Register…Continue reading
WpPages_DIR_AB_ACF – WordPress Pages Sync ACF Fields (ENHANCED)
/** * WPCode Snippet: WordPress Pages Sync ACF Fields (ENHANCED) * Description: Comprehensive ACF fields for page data with ALL metadata for WhaleSync/Airtable * Location: Run Everywhere * Priority: 10 * * INCLUDES: * – URLs & Permalinks (page_url, page_slug)…Continue reading