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-smart-filters/query/final-query', function( $query ) { | |
| foreach ( $query as $i => $value ) { | |
| if ( strpos( $i, '|search') !== false ) { | |
| unset ( $query[$i] ); | |
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-smart-filters/query/final-query', function( $query ) { | |
| if ( empty( $query['meta_query'] ) ) { | |
| return $query; | |
| } | |
| foreach ( $query['meta_query'] as $i => $item ) { |
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', function() { | |
| const { | |
| addAction, | |
| } = window.JetPlugins.hooks; | |
| const textChoose = 'Choose File'; | |
| const textUpload = 'File Uploaded'; | |
| function getFileNames( fileList ) { | |
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-apb/calendar/custom-schedule', 'modify_japb', 0, 5 ); | |
| function modify_japb( $value, $meta_key, $default_value, $provider, $service ) { | |
| if ( $meta_key !== 'days_off' ) { | |
| return $value; | |
| } |
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> | |
| document.addEventListener( 'jet-smart-filters/inited', function( initEvent ) { | |
| JetSmartFilters.events.subscribe('fiter/change', function(filter) { | |
| const apply = filter.name === 'date-range' && filter.dataValue.split('-').filter(function(item){ | |
| return item; | |
| }).length === 2; | |
| if (apply){ | |
| filter.filterGroup.apply(); | |
| } |
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( 'rest_endpoints', function( $endpoints ) { | |
| $name = '/jet-reviews-api/v1/submit-review'; | |
| if ( empty( $endpoints[ $name ] ) ) { | |
| return $endpoints; | |
| } | |
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
| add_filter( 'jet-engine/listings/allowed-callbacks', 'add_custom_dynamic_field_callbacks' ); | |
| add_filter( 'jet-engine/listing/dynamic-field/callback-args', 'add_custom_dynamic_field_callbacks_args', 0, 3 ); | |
| add_filter ( 'jet-engine/listings/allowed-callbacks-args', 'add_custom_controls', 0, 1 ); | |
| function add_custom_dynamic_field_callbacks( $callbacks ) { | |
| $callbacks['acf_date_format'] = __( 'ACF Custome Date Format for field in repeater', 'jet-engine' ); |
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_action( | |
| 'jet-form-builder/media-field/before-upload', | |
| /** | |
| * @var \Jet_Form_Builder\Request\Fields\Media_Field_Parser $parser | |
| */ | |
| function ( $parser ) { | |
| $class_name = $parser->get_context()->get_class_name(); |
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/listings/data/object-vars', function( $vars ) { | |
| if ( ! empty( $vars['term_id'] ) ) { | |
| $vars['term_id'] = (int) $vars['term_id']; | |
| } | |
| return $vars; | |
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 | |
| class Range_Meta_Fields { | |
| public function __construct() { | |
| add_filter( 'jet-smart-filters/query/final-query', array( $this, 'modify_query' ) ); | |
| add_filter( 'jet-smart-filters/filter-instance/args', array( $this, 'modify_args' ), 10, 2 ); | |
| } | |
| private function max_value_for_current_step( $max, $min, $step ) { |
NewerOlder