Archives: Snippets
How to Set a Default Country on the Vendor Registration Form
add_action( ‘wp_enqueue_scripts’, static function () { $registration_page_id = (int) get_option( ‘wcv_signup_registration_page_id’, 0 ); if ( 0 === $registration_page_id || ! is_page( $registration_page_id ) ) { return; } $default_country = ‘US’; // ISO 3166-1 alpha-2 code (e.g., GB, CA, AU, …)…Continue reading
CookieYes!
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