"hierarchical" => false, "supports" => ["title"], "has_archive" => false, "rewrite" => false, "query_var" => false, "can_export" => true, "delete_with_user" => false, "show_in_rest" => false, "rest_base" => "workflows", ]); } public function hideActionWorkflowsFromSettings($postTypes) { if (in_array(Module::POST_TYPE_WORKFLOW, $postTypes, true)) { $postTypes = array_diff($postTypes, [Module::POST_TYPE_WORKFLOW]); } return $postTypes; } }