“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

A/B Test Visibility Check

add_action(‘wp_footer’, function() { // Use this WordPress conditional to ensure the script only loads on the homepage. if ( is_front_page() || is_home() ) { ?>Continue reading

Allow SVG Files Upload (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Allow SVG Files Upload (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading