This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'jet-form-builder/preset-sanitize', | |
function ( $sanitize, \Jet_Form_Builder\Presets\Sources\Base_Source $source ) { | |
if ( jet_fb_live()->form_id == 258314 ) { | |
return true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'jet-engine/maps-listings/autocomplete-url-args/google', function( $args ){ | |
$args['components'] = 'country:fr'; | |
return $args; | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'jet-ajax-search/assets/localize-data', function( $data ) { | |
$data['sumbitOnEnter'] = false; | |
return $data; | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'jet-engine/maps-listings/data-settings', function( $settings ) { | |
$settings['clustererImg'] = get_stylesheet_directory_uri() . '/markerclusterer-img/m'; | |
return $settings; | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_available_variation', 'bbloomer_add_custom_field_variation_data' ); | |
function bbloomer_add_custom_field_variation_data( $variations ) { | |
$variations['custom_field'] = get_post_meta( $variations[ 'variation_id' ], 'custom_field', true ); | |
return $variations; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery( () => { | |
const { addFilter, addAction } = JetPlugins.hooks; | |
const { Filter } = JetFormBuilderAbstract; | |
function RepeaterFilter() { | |
Filter.call( this ); | |
this.getSlug = function () { | |
return 'repeaterTemplate'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.jet-form-builder__field-wrap{ | |
display: flex; | |
} | |
.jet-form-builder .field-type-media-field{ | |
gap: 5px; | |
} | |
.jet-form-builder-file-upload__file{ | |
border-radius: 10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.jet-smart-filters-date-period .jet-date-period__datepicker.date, .elementor-element.jet-smart-filter-content-position-line:has(.jet-smart-filters-search.jet-filter) { | |
width: -webkit-fill-available!important; | |
} | |
.jet-smart-filters-date-period .jet-date-period__datepicker.date .jet-date-period__datepicker-button { | |
display: flex; | |
justify-content: space-between; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener( | |
'DOMContentLoaded', | |
() => JetPlugins?.hooks?.addFilter?.( | |
'jet.fb.friendlyCaptcha.options', | |
'change-language', | |
function ( options ) { | |
/** | |
* @see https://docs.friendlycaptcha.com/#/widget_api?id=data-lang-attribute | |
*/ | |
options.language = 'de'; |