Tribe__Tickets__Tickets_Handler::remove_hooks()
Remove hooks for saving/meta.
Source
File: src/Tribe/Tickets_Handler.php
public function remove_hooks() { $main = Tribe__Tickets__Main::instance(); foreach ( $main->post_types() as $post_type ) { remove_action( 'save_post_' . $post_type, array( $this, 'save_post' ) ); } remove_filter( 'get_post_metadata', array( $this, 'filter_capacity_support' ), 15 ); remove_filter( 'updated_postmeta', array( $this, 'update_shared_tickets_capacity' ), 15 ); remove_filter( 'updated_postmeta', array( $this, 'update_meta_date' ), 15 ); remove_action( 'wp_insert_post', array( $this, 'update_start_date' ), 15 ); }
Changelog
Version | Description |
---|---|
4.11.4 | Introduced. |