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; | |
} | |
$store_type = jet_abaf()->settings->get( 'filters_store_type' ); | |
foreach ( $query['meta_query'] as $index => $meta_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-smart-filters/query/final-query', function( $query ) { | |
if ( empty( $query['meta_query'] ) ) { | |
return $query; | |
} | |
foreach ( $query['meta_query'] as $index => $meta_query ) { | |
if ( isset( $meta_query['key'] ) && '_seasonal_price' === $meta_query['key'] ) { // `_seasonal_price` unique key from Query Variable filter option. | |
$excluded = jet_abaf_get_excluded_apartments( $meta_query['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
<?php | |
$wysiwygConfig = function ( $wysiwyg_config ) { | |
/** | |
* You can find a list of all available plugins as folder names | |
* in wp-includes/js/tinymce/plugins | |
*/ | |
$plugins = array( | |
'colorpicker', | |
'textcolor', |
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-engine/register-macros', function() { | |
/** | |
* Return purchased products. | |
*/ | |
class Query_Results_Macro_With_Empty_Items extends \Jet_Engine\Query_Builder\Macros\Query_Results_Macro { | |
public function macros_tag() { | |
return 'query_results_with_empty_items'; |
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( document ).ready( function( $ ){ | |
$( window ).on( 'jet-popup-open-trigger', function( event ) { | |
let id = event?.popupData?.postId; | |
if ( ! id ) { | |
return; | |
} |
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('seopress_titles_template_variables_array', 'sp_titles_template_variables_array'); | |
add_filter('seopress_titles_template_replace_array', 'sp_titles_template_replace_array'); | |
add_filter('seopress_get_dynamic_variables', 'sp_get_dynamic_variables'); | |
function sp_titles_template_variables_array($array) { | |
$array[] = '%%je_repeater_template%%'; | |
$array[] = '%%je_checkbox_template%%'; | |
return $array; |
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 JEC_Change_Tags { | |
public function __construct() { | |
add_filter( 'jet-engine/listing/render/jet-listing-grid/settings', array( $this, 'apply_settings' ) ); | |
add_filter( 'jet-engine/listing/grid/nav-widget-settings', array( $this, 'nav_settings' ), 10, 2 ); | |
add_filter( 'jet-engine/listing/render/default-settings', array( $this, 'default_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( 'jet-popup/popup-condition/is_excluded/and', function( $is_excluded, $excludes_matchs, $popup_id ) { | |
if ( ! get_post( $popup_id ) || false === strpos( get_post( $popup_id )->post_title, '--exclude-or' ) ) { | |
return $is_excluded; | |
} | |
return in_array( true, $excludes_matchs ); |
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/capability/form', function( $cap ) { | |
return 'edit_others_posts'; | |
} ); |
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/profile-builder/user-page-title/macros', function( $macros ) { | |
$macros['do_shortcode'] = array( | |
'label' => 'Do Shortcode', | |
'cb' => function() { | |
return do_shortcode( '[jet_engine_data dynamic_field_source="query_var" dynamic_field_var_name="test1"]' ); | |
}, | |
'allowed_tabs' => array( 'account_page', 'user_page' ), | |
); |
NewerOlder