Last active
July 20, 2021 16:36
-
-
Save skyshab/cbfa6b23bece4e213b166522d7288fbd to your computer and use it in GitHub Desktop.
Remove actions related to attendee information in WooCommerce pages
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 | |
// Remove actions related to attendee info in WooCommerce pages | |
add_action( 'init', function() { | |
// Remove action to add attendee meta on completed order page | |
remove_action( 'woocommerce_before_order_itemmeta', tribe_callback( 'tickets-plus.woo.enhanced-template-hooks', 'add_attendee_data_for_order_item' ) ); | |
// Remove action to add "event" table heading from "Item" metabox on Woo order page | |
remove_action( 'woocommerce_admin_order_item_headers', tribe_callback( 'tickets-plus.woo.enhanced-template-hooks', 'add_event_title_header' ) ); | |
// Remove action to add event info in "Item" table on Woo order page | |
remove_action( 'woocommerce_admin_order_item_values', tribe_callback( 'tickets-plus.woo.enhanced-template-hooks', 'add_event_title_for_order_item' ) ); | |
// Remove action to add attendee meta on Woo order page | |
remove_action( 'woocommerce_order_item_meta_start', tribe_callback( 'tickets-plus.woo.enhanced-template-hooks', 'woocommerce_echo_event_info' ), 100 ); | |
// Remove action for loading inline styles in admin | |
remove_action( 'admin_enqueue_scripts', tribe_callback( 'tickets-plus.woo.enhanced-template-hooks', 'admin_order_table_styles' ), 99 ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment