WordPress at Your Fingertips
function is not described

WC_Post_Types::rest_api_allowed_post_types() public WC 1.0

Added product for Jetpack related posts.

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

No Hooks.

Return

Array.

Usage

$result = WC_Post_Types::rest_api_allowed_post_types( $post_types );
$post_types(array) (required)
Post types.

Code of WC_Post_Types::rest_api_allowed_post_types() WC 5.6.0

public static function rest_api_allowed_post_types( $post_types ) {
	$post_types[] = 'product';

	return $post_types;
}