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 my_custom_from_email_headers() { | |
$from_name = "Tester"; | |
$from_email = "[email protected]"; | |
$headers = "Content-type: text/html" . "\r\n"; | |
$headers .= sprintf( "From: %s <%s>", $from_name, $from_email ) . "\r\n"; | |
$headers .= sprintf( "Reply-To: %s", $from_email ) . "\r\n"; |
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
/*! For license information please see customize-controls.js.LICENSE.txt */ | |
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=1)}({1:function(e,t,r){e.exports=r("H0l3 |
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 my_dequeue_select2() { | |
// dequeue scripts | |
wp_deregister_script( 'select2'); | |
wp_dequeue_script( 'select2'); | |
// dequeue styles | |
wp_deregister_style( 'ayecode-ui'); | |
wp_dequeue_style( 'ayecode-ui'); | |
} |
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( "tribe_events_views_v2_view_breakpoints", function($breakpoints){ | |
return [ | |
'xsmall' => 500, | |
'medium' => 768, | |
'full' => 960, | |
]; | |
}); |
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( 'tribe_events_community_form', function( $event_id, $event, $template ){ | |
add_filter( 'the_content', 'do_shortcode', 999 ); | |
}, 100, 3); |
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( 'woocommerce_order_status_changed', 'rt_ct_reset_failed_payouts', 9, 4 ); | |
function rt_ct_reset_failed_payouts( $order_id, $status_from, $status_to, $order ) { | |
if ( 'completed' === $status_to ) { | |
$payouts = tribe_payouts(); | |
// Get payouts by Order ID. | |
$payouts->by( 'order', $order_id ); |
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( 'woocommerce_order_status_changed', 'rt_ct_reset_failed_payouts', 9, 4 ); | |
function rt_ct_reset_failed_payouts( $order_id, $status_from, $status_to, $order ) { | |
global $wpdb; | |
if ( 'completed' == $status_to ) { | |
$query = $wpdb->query( "UPDATE $wpdb->posts SET post_status = 'tribe-payout-pending' WHERE post_status = 'tribe-payout-failed'" ); | |
} |
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( 'tribe_tickets_get_ticket_max_purchase', function( $available_at_a_time, $ticket, $event, $ticket_id ) { | |
// maybe do some logic here with one of the available arguments? | |
return 1; | |
}, 10, 4 ); |
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( 'tribe_tickets_tickets_hook', function($provider){ | |
if( 'tribe_events' !== get_post_type() ) { | |
return; | |
} | |
remove_filter( 'the_content', [ $provider, 'front_end_tickets_form_in_content' ], 11 ); | |
}); |
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
[data-guest-number="1"] label[for*=_guest-name], [data-guest-number="1"] label[for*=_guest-name] + div { | |
display: none!important; | |
} |