function allow_feedback_rest_api_type($post_types) { $post_types[] = 'feedback'; return $post_types; }