Single product – Wasvoorschrift

function custom_woocommerce_attribute( $html, $attribute, $values ) { // Controleer of $attribute een object of string is if ( is_object( $attribute ) && method_exists( $attribute, ‘get_name’ ) ) { $attribute_name = strtolower( $attribute->get_name() ); } else { $attribute_name = strtolower( (string)…Continue reading

Export Form Fields to CSV

//****************************************************** // Place shortcode on a page to [form_fields_csv_download_link] // This snippet creates a short-code that you can add to a wordpress page or post // that will create a link to download a CSV file which contains a list…Continue reading

Add headers to API request adding user to Brevo email list

add_filter( ‘frm_api_request_args’, ‘my_custom_frm_api_request_header’, 10, 2 ); function my_custom_frm_api_request_header( $arg_array, $args ) { if ( $args[‘url’] == ‘https://api.brevo.com/v3/contacts/’ ) { // the full url where the request is being sent $arg_array[‘headers’][‘api-key’] = ‘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’; //Replace Your-API-Key-Here with your Brevo API key }…Continue reading

Formidable Defines & Globals

define(‘MEMBER_REGISTRATION_FORM_KEY’, ‘member-registration’); define(‘MEMBER_REGISTRATION_FORM_ID’, FrmForm::get_id_by_key(MEMBER_REGISTRATION_FORM_KEY)); define(‘MEMBER_REGISTRATION_EMAIL_PRIMARY_FIELD_KEY’, MEMBER_REGISTRATION_FORM_KEY . ‘_email_primary’); define(‘MEMBER_REGISTRATION_EMAIL_PRIMARY_FIELD_ID’, FrmField::get_id_by_key(MEMBER_REGISTRATION_EMAIL_PRIMARY_FIELD_KEY)); define(‘MEMBER_REGISTRATION_EMAIL_SECONDARY_FIELD_KEY’, MEMBER_REGISTRATION_FORM_KEY . ‘_email_secondary’); define(‘MEMBER_REGISTRATION_EMAIL_SECONDARY_FIELD_ID’, FrmField::get_id_by_key(MEMBER_REGISTRATION_EMAIL_SECONDARY_FIELD_KEY)); define(‘MEMBER_REGISTRATION_USER_ID_FIELD_KEY’, MEMBER_REGISTRATION_FORM_KEY . ‘_user_id’); define(‘MEMBER_REGISTRATION_USER_ID_FIELD_ID’, FrmField::get_id_by_key(MEMBER_REGISTRATION_USER_ID_FIELD_KEY)); define(‘MEMBER_REGISTRATION_USER_NAME_FIELD_KEY’, MEMBER_REGISTRATION_FORM_KEY . ‘_user_name’); define(‘MEMBER_REGISTRATION_USER_NAME_FIELD_ID’, FrmField::get_id_by_key(MEMBER_REGISTRATION_USER_NAME_FIELD_KEY)); define(‘MEMBER_REGISTRATION_PASSWORD_FIELD_KEY’, MEMBER_REGISTRATION_FORM_KEY . ‘_password’); define(‘MEMBER_REGISTRATION_PASSWORD_FIELD_ID’, FrmField::get_id_by_key(MEMBER_REGISTRATION_PASSWORD_FIELD_KEY)); define(‘MEMBER_REGISTRATION_MEMBER_NAME_FIELD_KEY’, MEMBER_REGISTRATION_FORM_KEY . ‘_member_name_primary’); define(‘MEMBER_REGISTRATION_MEMBER_NAME_FIELD_ID’, FrmField::get_id_by_key(MEMBER_REGISTRATION_MEMBER_NAME_FIELD_KEY));…Continue reading

After Create (Import) Member(s)

/** * Name: fw_afterNewMemberCreate (“fw” indicates “FreeWheelers”) * Desc: After creating (importing) a member, set values * 1. Creates a WP user if it doesn’t exist (which it won’t in the case of an import) * 2. Sets the WordPress…Continue reading

Populate Checkbox for Nightly Prices

/** * Name: fw_setNightlyPrices * Desc: Sets up the registration site prices checkboxes **/ add_filter(‘frm_setup_new_fields_vars’, ‘fw_setNightlyPrices’, 20, 2); function fw_setNightlyPrices($values, $field) { if ($field->id == RALLY_REGISTRATION_NIGHTS_AND_PRICES_SITE_1_FIELD_ID) { $rally_registration_data_entry_key = $_GET[“event_entry_key”]; $rally_event_data_entry = FrmEntry::getOne(FrmEntry::get_id_by_key($rally_registration_data_entry_key), true); $prices = array(); for($site=1;$sitemetas[FrmField::get_id_by_key($field_key)] : 0;…Continue reading