WordPress at Your Fingertips
function is not described

WooCommerce::init_hooks() private WC 2.3

Hook into actions and filters.

{} It's a method of the class: WooCommerce{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->init_hooks();

Changelog

Since 2.3 Introduced.

Code of WooCommerce::init_hooks() WC 5.7.1

private function init_hooks() {
	register_activation_hook( WC_PLUGIN_FILE, array( 'WC_Install', 'install' ) );
	register_shutdown_function( array( $this, 'log_errors' ) );

	add_action( 'plugins_loaded', array( $this, 'on_plugins_loaded' ), -1 );
	add_action( 'admin_notices', array( $this, 'build_dependencies_notice' ) );
	add_action( 'after_setup_theme', array( $this, 'setup_environment' ) );
	add_action( 'after_setup_theme', array( $this, 'include_template_functions' ), 11 );
	add_action( 'init', array( $this, 'init' ), 0 );
	add_action( 'init', array( 'WC_Shortcodes', 'init' ) );
	add_action( 'init', array( 'WC_Emails', 'init_transactional_emails' ) );
	add_action( 'init', array( $this, 'add_image_sizes' ) );
	add_action( 'init', array( $this, 'load_rest_api' ) );
	add_action( 'switch_blog', array( $this, 'wpdb_table_fix' ), 0 );
	add_action( 'activated_plugin', array( $this, 'activated_plugin' ) );
	add_action( 'deactivated_plugin', array( $this, 'deactivated_plugin' ) );
	add_action( 'woocommerce_installed', array( $this, 'add_woocommerce_inbox_variant' ) );
	add_action( 'woocommerce_updated', array( $this, 'add_woocommerce_inbox_variant' ) );

	// These classes set up hooks on instantiation.
	wc_get_container()->get( DownloadPermissionsAdjuster::class );
	wc_get_container()->get( AssignDefaultCategory::class );
	wc_get_container()->get( DataRegenerator::class );
	wc_get_container()->get( LookupDataStore::class );
	wc_get_container()->get( RestockRefundedItemsAdjuster::class );
}