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 class 'dt-children-only' to widget | |
add_filter( 'jet-engine/listings/dynamic-terms/items', function( $terms, $post_id, $settings ) { | |
if ( ! is_array( $terms ) || false === strpos( $settings['_css_classes'] ?? $settings['className'] ?? '', 'dt-children-only' ) ) { | |
return $terms; | |
} | |
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 | |
// Debug query vars | |
add_action( 'wp', function() { | |
$query_vars = [ | |
'pagename' => get_query_var( 'pagename' ), | |
'jet_pb' => get_query_var( 'jet_pb' ), | |
'jet_pb_subpage' => get_query_var( 'jet_pb_subpage' ), | |
]; | |
error_log( '[JetEngine Profile Builder] Query Vars: ' . print_r( $query_vars, true ) ); | |
} ); |
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
.jet-listing-grid__item { | |
position: relative; | |
} | |
.test-link { | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; |
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
.jet-listing-grid__item { | |
position: relative; | |
} | |
.test-link { | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; |
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() { | |
if ( ! class_exists( 'Jet_Engine_Base_Macros' ) ) { | |
return; | |
} | |
class Term_Instock_Count_Macros extends Jet_Engine_Base_Macros { | |
public function macros_tag() { |
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
<style> | |
.jet-form-builder-row { | |
position: relative; | |
margin-bottom: 20px; | |
} | |
.field-type-text-field .jet-form-builder__label { | |
position: absolute; | |
left: 10px; | |
top: 50%; |
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_shortcode( 'user_posts_limit', function( $atts ) { | |
// Parse shortcode attributes | |
$atts = shortcode_atts( array( | |
'post_type' => 'all', | |
), $atts ); | |
// Check if JetEngine and Profile Builder module are active | |
if ( ! class_exists( '\Jet_Engine\Modules\Profile_Builder\Module' ) ) { |