WC_Install::setup_environment() – Setup WC environment – post types, taxonomies, endpoints.

You appear to be a bot. Output may be restricted

Description

Setup WC environment – post types, taxonomies, endpoints.

Usage

WC_Install::setup_environment();

Parameters

Returns

void

Source

File name: woocommerce/includes/class-wc-install.php
Lines:

1 to 8 of 8
  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();
  }
 

 View on GitHub View on Trac