Location: everywhere
Display Only Selected Countries 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; } $allowed_countries = array( ‘AU’, ‘GB’, ‘US’, ‘CA’ ); // ISO 3166-1 alpha-2 codes…Continue reading
Untitled Snippet
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
WpPages_DIR_AA_CPT – WordPress Pages Sync CPT Registration
/** * WPCode Snippet: WordPress Pages Sync CPT Registration * Description: Registers custom post type for WordPress pages data with full REST API support * Location: Run Everywhere * Priority: 0 * * Purpose: Create a mirror/snapshot of WordPress pages…Continue reading
“Correct” date format on edit
/** * Name: fw_correctBirthdayDateFormat (“fw” indicates “FreeWheelers”) * Desc: For some reason, not currently known, Formidable is displaying dates as YYYY-MM-DD in the date field, when a member is edited * Note: This shouldn’t have to be done **/ add_filter(‘frm_setup_edit_fields_vars’,…Continue reading
Update WP User When Account Username is Changed
/** * Name: fw_updateUserName (“fw” indicates “FreeWheelers”) * Desc: Manually updates the WP username if the user changes her account username **/ add_action(‘frm_after_update_entry’, ‘fw_updateUserName’, 10, 2); function fw_updateUserName( $entry_id, $form_id ) { if ($form_id == MEMBER_REGISTRATION_FORM_ID) { // get the…Continue reading
Deactivate WPRocket Prefetch
add_filter( ‘rocket_preconnect_external_domains_optimization’, ‘__return_false’ );Continue reading