WC_Install::setup_environment()
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() WC Install::setup environment code WC 9.4.2
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_Auth::add_endpoint(); TransientFilesEngine::add_endpoint(); }