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 | |
function show_units_count_ac( $column, $post_id ) { | |
if ( ! is_plugin_active( 'jet-booking/jet-booking.php' ) ) { | |
return ''; | |
} | |
$units = jet_abaf()->db->get_apartment_units( $post_id ); | |
$units_count = ! empty( $units ) ? count( $units ) : 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-form-builder/gateways/before-create', | |
function ( $request ) { | |
$need_request = \Jet_FB_Stripe_Gateway\Compatibility\Jet_Form_Builder\Actions\Create_Checkout_Session::class; | |
// We check whether this is a request to create a new payment in Stripe | |
if ( ! is_a( $request, $need_request ) ) { | |
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( | |
'jet-form-builder/security/csrf-token/datetime-limit', | |
/** @var \DateTimeImmutable $datetime */ | |
function ( $datetime ) { |
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/filters/filter-options', function( $options, $filter_id ){ | |
if ( 1305 == $filter_id ) { | |
uasort( $options, '__compare_jsf' ); | |
} |
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/send-email/message_content', | |
function ( string $content ) { | |
return str_replace( | |
'%client_ip%', |
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-apb-appointments-item { | |
font-family: "Montserrat", Montserrat; | |
font-size: 16px; | |
font-weight: 300; | |
text-align: center; |
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/datetime/use-wp-date', '__return_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
.change-hover-color:not(:disabled):not(:checked):hover + span::before { | |
border-color: red !important; | |
} |
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/preset-sanitize', | |
function ( $sanitize, \Jet_Form_Builder\Presets\Sources\Base_Source $source ) { | |
if ( jet_fb_live()->form_id == 2055 && is_a( $source, \Jet_Form_Builder\Presets\Sources\Preset_Source_Post::class ) ) { | |
return 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
<?php | |
add_filter( 'jet-popup/access-cap', 'my_custom_admin_ui_cap', 10 ); | |
function my_custom_admin_ui_cap( $capability ) { | |
// Return your custom capability | |
return 'manage_options'; | |
} |
NewerOlder