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( 'wp_footer', function() { | |
| if ( ! defined( 'ELEMENTOR_VERSION' ) ) { | |
| return; | |
| } | |
| ?> | |
| <script> | |
| jQuery( function( $ ) { | |
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/modules/dynamic-visibility/condition/args', function( $args ) { | |
| if ( empty( $args['condition_settings']['__dynamic__']['jedv_field'] ) ) { | |
| return $args; | |
| } | |
| $pattern = '/<span class="jet-engine-query-count query-\d+ count-type-\w+" data-query="\d+">\d+<\/span>/'; | |
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/content-filters', function( $filters ) { | |
| class CCT_Get_Value_By_ID_JFB_Filter extends \Jet_Form_Builder\Classes\Filters\Base_Filter { | |
| public function get_id(): string { | |
| return 'cct_get_value_by_id'; | |
| } |
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( 'admin_enqueue_scripts', function() { | |
| wp_add_inline_script( | |
| 'jet-engine-query-edit', | |
| 'if ( JetEngineQueryConfig.taxonomies ) { | |
| JetEngineQueryConfig.taxonomies.push( { "value" : "get_queried_tax", "label" : "Queried Taxonomy" } ); | |
| }' | |
| ); |
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 JSF_Terms_By_Slug { | |
| public function __construct() { | |
| add_filter( 'jet-smart-filters/query/final-query', array( $this, 'modify_query' ) ); | |
| } | |
| public function modify_query( $query ) { | |
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 ( ! $provider ) { | |
| return $value; | |
| } | |
| if ( $meta_key !== 'default_slot' ) { |
NewerOlder