Category: Admin
RESTAPI_DIR – Gravity View
/** * WPCode Snippet: Expose GravityView ACF Fields to REST API (Application Password Auth Required) * Description: Makes ALL GravityView data accessible ONLY via Application Password authentication * Location: Run Everywhere * Priority: 15 */ defined( ‘ABSPATH’ ) || exit;…Continue reading
FPOPULATION_DIR – Gravity View
/** * WPCode Snippet: Auto-Populate GravityView Field Details on CPT Sync * Location: Run Everywhere * Priority: 30 * Description: Hooks into GravityView sync to populate detailed field information */ defined( ‘ABSPATH’ ) || exit; /** * Hook into GravityView…Continue reading
SYNC_DIR – Gravity View
/** * WPCode Snippet: GravityView Sync System * Description: Syncs GravityView configurations to custom post type * Location: Run Everywhere * Priority: 20 * Based on proven Gravity Forms sync patterns */ defined( ‘ABSPATH’ ) || exit; /** * ==========================================…Continue reading
ACF – Gravity View
/** * WPCode Snippet: GravityView Views ACF Fields * Description: Registers ACF fields for GravityView configurations and settings * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function() { if ( ! function_exists( ‘acf_add_local_field_group’…Continue reading
CPT _DIR – Gravity View
/** * WPCode Snippet: GravityView Views CPT Registration * Description: Registers custom post type for GravityView with full REST API support * Location: Run Everywhere * Priority: 0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’, function() { $labels =…Continue reading
GF turn off * indicates required fields
add_filter( ‘gform_required_legend’, ‘__return_empty_string’ );Continue reading
Logo Scroll Shrink (CSS)
/* Prevent transition flicker during measurement */ header.sticky-header.no-anim { transition: none !important; } /* Transforms */ header.sticky-header .logo img, header.sticky-header.elementor-sticky–effects .tagline, header.sticky-header, header.sticky-header #schedule-service-btn { transition: transform 0.25s ease; } /* Optional element scales */ header.sticky-header.scrolled .logo { transform: scale(0.7);…Continue reading
Logo Scroll Shrink (JS)
/** * Sticky header with stable base height: * – Computes base height ONLY in unscrolled state and stores it in –header-h * – Shrinks by CSS percentage when `.scrolled` is added * – Recomputes base when crossing back to…Continue reading
DIR SYNC 4
/** * Main LifterLMS Course Sync Engine * * PURPOSE: * – Syncs LifterLMS courses to llms_content_sync CPT * – Handles both automatic and manual synchronization * – Fires completion action for detail population extensions * – Cloudflare-safe with proper…Continue reading