Automattic\WooCommerce\Admin\Features\Navigation

CoreMenu::register_post_types()publicWC 1.0

Register all core post types.

Method of the class: CoreMenu{}

No Hooks.

Return

null. Nothing (null).

Usage

$CoreMenu = new CoreMenu();
$CoreMenu->register_post_types();

CoreMenu::register_post_types() code WC 9.0.1

public function register_post_types() {
	Screen::register_post_type( 'shop_order' );
	Screen::register_post_type( 'product' );
	Screen::register_post_type( 'shop_coupon' );
}