Archives: Snippets
GravityForms_DIR_AE_FPopulate – Auto-Populate Field Details on CPT Sync
/** * WPCode Snippet: Auto-Populate Field Details on CPT Sync * Location: Run Everywhere * Priority: 30 */ defined( ‘ABSPATH’ ) || exit; /** * Hook into CPT sync completion */ add_action( ‘gf_form_feeds_sync_complete’, ‘populate_gf_field_details_data’, 10, 2 ); /** * Main…Continue reading
LifterLMS_DIR_AC_RAPI – Expose LifterLMS ACF Fields to REST API
/** * WPCode Snippet: Expose LifterLMS ACF Fields to REST API * Description: Makes LifterLMS module data accessible via Application Password authentication * Location: Run Everywhere * Priority: 15 */ defined( ‘ABSPATH’ ) || exit; /** * Register LifterLMS ACF…Continue reading
GravityForms_DIR_AD_RAPI – Expose Gravity Forms ACF Fields to REST API
/** * WPCode Snippet: Expose Gravity Forms ACF Fields to REST API * Description: Makes Gravity Forms data accessible via Application Password authentication * Location: Run Everywhere * Priority: 15 */ defined( ‘ABSPATH’ ) || exit; /** * Register Gravity…Continue reading
GravityForms_DIR_AC_SYNC – Gravity Forms & Feeds Sync Engine
/** * WPCode Snippet: Gravity Forms & Feeds Sync Engine * Description: Manual sync functionality for forms and their feeds * Location: Run Everywhere * Priority: 20 */ defined( ‘ABSPATH’ ) || exit; // Add a manual test button in…Continue reading
GravityForms_DIR_AB_ACF – Gravity Forms & Feeds ACF Fields
/** * WPCode Snippet: Gravity Forms & Feeds ACF Fields * Description: Registers ACF fields for form and feed data + notification/confirmation content * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function() {…Continue reading
GravityForms_DIR_AA_CPT – Gravity Forms & Feeds CPT Registration
/** * WPCode Snippet: Gravity Forms & Feeds CPT Registration * Description: Registers custom post type with full REST API support * Location: Run Everywhere * Priority: 0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’, function() { $labels =…Continue reading
Allow Shop Managers to edit and promote wholesale users.
hide_wp_adminbar.css
html { margin-top: 0 !important; } #wpadminbar { translate: 0 -100%; } #wpadminbar:before { content: “”; position: absolute; inset: 0; translate: 0 100%; } #wpadminbar, #wpadminbar:before { transition: 0.5s 0.5s cubic-bezier(0.19, 1, 0.22, 1); } #wpadminbar:hover, #wpadminbar:hover:before { translate: 0…Continue reading
Core_Universal_Download Fix
/** * WPCode Snippet: Auto-Create .htaccess in Uploads Folder for Force Download * Description: Creates/updates .htaccess in wp-content/uploads to force .txt file downloads * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; /** * Create or…Continue reading