WC_Install::setup_environment()private staticWC 3.2.0

Setup WC environment - post types, taxonomies, endpoints.

Method of the class: WC_Install{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Install::setup_environment();

Changelog

Since 3.2.0 Introduced.

WC_Install::setup_environment() code WC 8.9.0

private static function setup_environment() {
	WC_Post_types::register_post_types();
	WC_Post_types::register_taxonomies();
	WC()->query->init_query_vars();
	WC()->query->add_endpoints();
	WC_API::add_endpoint();
	WC_Auth::add_endpoint();
	TransientFilesEngine::add_endpoint();
}