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
| <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( '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
| 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-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
| <?php | |
| add_filter( 'jet-smart-filters/query/final-query', function( $query ) { | |
| foreach ( $query as $i => $value ) { | |
| if ( strpos( $i, '|search') !== false ) { | |
| unset ( $query[$i] ); | |
OlderNewer