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
add_filter( 'jet-engine/listings/macros-list', 'register_get_related_items_by_sibling_relation_macro' ); | |
function register_get_related_items_by_sibling_relation_macro( $macros_list ) { | |
$macros_list['rel_get_items_by_relation'] = array( | |
'label' => 'Related Items By Sibling Relation', | |
'cb' => '__get_related_items_by_sibling_relation', | |
'args' => array( | |
'_rel_id' => array( | |
'label' => __( 'From Relation', 'jet-engine' ), |
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_action( 'jet-engine/register-macros', function(){ | |
if ( ! function_exists( 'WC' ) ) { | |
return; | |
} | |
class WC_Cross_Sale_Macro extends \Jet_Engine_Base_Macros { |
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
//add Get properties from query macro | |
add_filter( 'jet-engine/listings/macros-list', 'register_query_items_macro' ); | |
function register_query_items_macro( $macros_list ) { | |
$macros_list['get_props_from_query'] = array( | |
'label' => 'Get properties from query', | |
'cb' => 'get_props_from_query_macro', | |
'args' => array( | |
'query_id' => array( |
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
add_filter( 'jet-engine/listings/macros-list', 'register_current_post_parent_macro' ); | |
function register_current_post_parent_macro( $macros_list ) { | |
$macros_list['current_post_parent'] = array( | |
'label' => 'Current post parent (current post ID if no parent)', | |
'cb' => '_get_current_post_parent', | |
); | |
return $macros_list; |
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
add_filter( 'jet-engine/listings/macros-list', 'register_format_date_string_macro' ); | |
function register_format_date_string_macro( $macros_list ) { | |
$macros_list['format_date'] = array( | |
'label' => 'Format date string', | |
'cb' => '_get_format_date_string', | |
'args' => array( 'format' => array( | |
'label' => 'Format', | |
'type' => 'text', |
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 JE_Query_Filter_Options_Generator { | |
public function __construct() { | |
add_action( 'plugins_loaded', array( $this, 'maybe_add_filters' ) ); | |
} | |
public function maybe_add_filters() { | |
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_action( 'wp_ajax_cycle_through_cct_to_clone', 'cycle_through_cct_to_clone' ); | |
function cycle_through_cct_to_clone() { | |
$type_object = Jet_Engine\Modules\Custom_Content_Types\Module::instance()->manager->get_content_types( 'blum_cct' ); | |
$handler = $type_object->get_item_handler(); | |
$query = Jet_Engine\Query_Builder\Manager::instance()->get_query_by_id( 196 ); | |
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_action( | |
'jet-form-builder/form-handler/before-send', | |
function ( \Jet_Form_Builder\Form_Handler $form_handler ) { | |
$action_handler = $form_handler->action_handler; | |
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 | |
/** | |
* Slider start template | |
*/ | |
$settings = $this->get_settings_for_display(); | |
$class_array[] = 'jet-slider__items'; | |
$class_array[] = 'sp-slides'; | |
$classes = implode( ' ', $class_array ); |
OlderNewer