Automattic\WooCommerce\Admin\Features\Navigation
Screen::get_post_types()
Returns an array of registered post types.
Method of the class: Screen{}
Hooks from the method
Return
null
. Nothing.
Usage
$result = Screen::get_post_types();
Screen::get_post_types() Screen::get post types code WC 7.3.0
public static function get_post_types() { return apply_filters( 'woocommerce_navigation_post_types', self::$post_types ); }