This file contains 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( 'DOMContentLoaded', function() { | |
const { | |
addAction, | |
} = window.JetPlugins.hooks; | |
addAction( 'jet.fb.observe.after', 'total-amount', init ); | |
function init( observable ) { |
This file contains 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 Jet_Appointment_Add_Current_Link { | |
private $query_var = 'jet_apb_add_current_to_calendar'; | |
public function __construct() { | |
add_action( 'plugins_loaded', array( $this, 'add_filters' ), 1000 ); | |
} | |
This file contains 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/query-builder/query/items', function( $items, $query ) { | |
if ( false !== strpos( $query->name, '--sticky-correct' ) ) { | |
$per_page = ! empty( $query->final_query['posts_per_page'] ) ? $query->final_query['posts_per_page'] : 10; | |
$items = array_slice( $items, 0, $per_page ); | |
} | |
return $items; | |
}, 0, 2 ); |
This file contains 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 Jet_Reviews_Rich_Snippets_Email_Remover { | |
private $remove_email = false; | |
public function __construct() { | |
add_action( 'elementor/frontend/widget/before_render', array( $this, 'set_remove_flag' ) ); | |
add_filter( 'jet-reviews/user-manager/raw-user-data', array( $this, 'remove_email' ) ); | |
} |
This file contains 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 Jet_Tabs_Combined_Faq { | |
private $schema = array(); | |
private $widget = null; | |
private $store = false; | |
public function __construct() { | |
add_filter( 'jet-tabs/widget/loop-items', array( $this, 'store_widget' ), 100, 3 ); |
This file contains 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/range/source-callbacks', function( $callbacks ) { | |
$callbacks['jet_smart_filters_cct_values'] = 'Get from CCT field'; | |
return $callbacks; | |
} ); | |
add_filter( 'jet-smart-filters/filter-instance/args', function( $args ) { |
This file contains 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( 'get_post_metadata', function( $value, $post_id, $key ) { | |
if ( $key !== 'cart_product_atributes' ) { | |
return $value; | |
} | |
if ( ! get_post( $post_id ) ) { | |
return $value; |
This file contains 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
<style> | |
.jet-form-builder-hr-select-level.not-required .jet-form-builder__required { | |
display: none; | |
} | |
</style> | |
<script> | |
jQuery( document ).ready( function( $ ) { | |
$( window ).on( 'jet-form-builder/after-init', initWatchers ); |
This file contains 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 JSFC_Default_Value_Shortcode { | |
private $defaults = array(); | |
private $script_enqueued = false; | |
public function __construct() { | |
add_shortcode( 'jsf_default_value', array( $this, 'do_shortcode' ) ); |
This file contains 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_Search_In_List { | |
private $prefix = 'in_list'; | |
private $delimiter = '__'; | |
public function __construct() { | |
add_filter( 'jet-smart-filters/query/final-query', array( $this, 'modify_query' ) ); | |
add_action( 'jet-smart-filters/admin/register-dynamic-query', array( $this, 'helper_dynamic_query' ) ); |
NewerOlder