WordPress at Your Fingertips
function is not described

WC_Install::setup_environment() private WC 3.2.0

Setup WC environment - post types, taxonomies, endpoints.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Install::setup_environment();

Changelog

Since 3.2.0 Introduced.

Code of WC_Install::setup_environment() WC 5.6.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();
}