Skip to content

Commit

Permalink
deprecate on-demand load of Module
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanta94 committed Jan 29, 2025
1 parent 19cfbc6 commit 7d9aefd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tickets/Commerce/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ protected function add_actions() {
// Compatibility Hooks
add_action( 'init', [ $this, 'register_event_compatibility_hooks' ] );

add_action( 'tribe_common_loaded', [ $this, 'load_commerce_module' ] );

add_action( 'template_redirect', [ $this, 'do_cart_parse_request' ] );
add_action( 'template_redirect', [ $this, 'do_checkout_parse_request' ] );

Expand Down Expand Up @@ -482,9 +480,11 @@ public function filter_payments_tab_settings( $settings ) {
* Initializes the Module Class.
*
* @since 5.1.9
*
* @deprecated TBD
*/
public function load_commerce_module() {
$this->container->make( Module::class );
_deprecated_function( __METHOD__, 'TBD' );
}

/**
Expand Down

0 comments on commit 7d9aefd

Please sign in to comment.