Remove address from the header
function wcvendors_remove_address( $address){ unset($address); return $address ; } add_filter( ‘wcv_format_store_address_output’, ‘wcvendors_remove_address’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function wcvendors_remove_address( $address){ unset($address); return $address ; } add_filter( ‘wcv_format_store_address_output’, ‘wcvendors_remove_address’ );Continue reading
/** * Custom shortcode to display WPForms form entries in table view * * Basic usage: [wpforms_entries_table id=”FORMID”] * * @link https://wpforms.com/developers/how-to-display-form-entries/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_entries_table( $atts ) { // Pull ID shortcode attributes.…Continue reading
/** * Add field values for dropdown, checkboxes, and multiple choice fields * * @link https://wpforms.com/developers/add-field-values-for-dropdown-checkboxes-and-multiple-choice-fields/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_fields_show_options_setting’, ‘__return_true’ );Continue reading
/** * Defer the reCAPTCHA script until after the page loads * * @link https://wpforms.com/developers/how-to-defer-the-recaptcha-script/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_recaptcha_add_async_defer( $tag, $handle ) { if ( strpos( $tag, ‘recaptcha/api.js?onload=wpformsRecaptchaLoad’ ) !== false ) { $tag…Continue reading
/** * Change position of v2 Invisible reCAPTCHA badge * * @link https://wpforms.com/developers/how-to-change-the-position-of-the-v2-invisible-recaptcha-badge/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_invisible_recaptcha_position( $data, $form_data ) { $type = wpforms_setting( ‘recaptcha-type’, ‘v2’ ); if ( ‘invisible’ === $type ) {…Continue reading
/** * Run shortcodes on HTML field content * * @link https://wpforms.com/developers/how-to-display-shortcodes-inside-the-html-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_html_field_shortcodes( $field, $field_atts, $form_data ) { if ( ! empty( $field[ ‘code’ ] ) ) { $field[ ‘code’ ]…Continue reading
/** * Sets a default date for Date Picker * * @link https://wpforms.com/developers/how-to-set-a-default-date-for-your-date-picker-form-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_picker_default() { ?>Continue reading
/** * Adds the ability to select multiple dates inside the Date Picker field * * @link https://wpforms.com/developers/allow-date-range-or-multiple-dates-in-date-picker/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_picker_multiple() { ?>Continue reading
/** * Adds a date range inside the date picker field. * * @link https://wpforms.com/developers/allow-date-range-or-multiple-dates-in-date-picker/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_picker_range() { ?>Continue reading
/** * Modify the required field indicator * * @link https://wpforms.com/developers/how-to-change-required-field-indicator/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_required_indicator( $text ) { return ‘ ‘ . __( ‘*’, ‘wpforms’ ) . ‘‘; } add_filter( ‘wpforms_get_field_required_label’, ‘wpf_dev_required_indicator’, 10, 1…Continue reading