WPCOM_JSON_API_Endpoint::is_post_type_allowed PHP Method