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-woo-builder/tools/carousel/options', '__your_prefix_add_carousel_options' ); | |
function __your_prefix_add_carousel_options( $options ) { | |
$options['freeMode'] = true; | |
return $options; | |
} |
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-woo-builder/macros/macros-list', function( $macros ) { | |
$macros['percentage_sale_max'] = 'get_percentage_sale_max'; | |
$macros['percentage_sale_min'] = 'get_percentage_sale_min'; | |
return $macros; | |
} ); | |
function get_percentage_sale_max() { | |
global $product; |
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/listings/allowed-callbacks', '__your_prefix_get_post_url_by_post_meta_callback', 10, 2 ); | |
function __your_prefix_get_post_url_by_post_meta_callback( $callbacks ) { | |
$callbacks['__your_prefix_post_meta_field_value'] = esc_html__( 'Post URL by Post Meta Value', 'jet-engine' ); | |
return $callbacks; | |
} | |
function __your_prefix_post_meta_field_value( $meta_value ) { | |
global $wpdb; |
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-elements/posts/meta_callbacks', '__your_prefix_add_meta_callback' ); | |
function __your_prefix_add_meta_callback( $callbacks ) { | |
$callbacks['__your_prefix_get_post_words_trim'] = esc_html__( 'Words Trim', 'jet-elements' ); | |
return $callbacks; | |
} | |
function __your_prefix_get_post_words_trim( $content ) { |
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-woo-builder/template-functions/placeholder-thumbnail-src', '__your_prefix_get_wc_placeholder_image' ); | |
function __your_prefix_get_wc_placeholder_image() { | |
$placeholder = wc_placeholder_img_src( 'woocommerce_thumbnail' ); | |
return $placeholder; | |
} |
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-woo-builder/jet-woo-taxonomy-tiles/tax_thumbnail', '__your_prefix_display_taxonomy_thumbnail', 10, 2 ); | |
function __your_prefix_display_taxonomy_thumbnail( $image_key, $tax ) { | |
if ( $tax->taxonomy === 'category' ) { | |
$image_key = 'category_featured_image'; | |
} elseif ( $tax->taxonomy === 'post-custom-tax' ) { | |
$image_key = 'custom_taxonomy_featured_image'; | |
} |
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-woo-builder/jet-woo-taxonomy-tiles/taxonomy_options', '__your_prefix_add_taxonomy_options' ); | |
function __your_prefix_add_taxonomy_options( $taxonomy ) { | |
$taxonomy['category'] = esc_html__( 'Post Category', 'jet-woo-builder' ); // Standart Post Category key | |
$taxonomy['post-custom-tax'] = esc_html__( 'Custom Taxonomy', 'jet-woo-builder' ); // Custom Taxonomy key | |
return $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 | |
add_filter( 'jet-search/ajax-search/meta_callbacks', '__your_prefix_add_meta_callback' ); | |
function __your_prefix_add_meta_callback( $callbacks ) { | |
$callbacks['__your_prefix_get_post_title_by_id'] = esc_html__( 'Get post title by ID', 'jet-search' ); | |
return $callbacks; | |
} | |
function __your_prefix_get_post_title_by_id( $value = null, $delimiter = ', ' ) { |
NewerOlder