I’m working on creating single and archive pages for a custom post type that is being set within a plugin. Only that the plugin doesn’t have the 'has_archive' => true set and I don’t want to manually override the plugin since I know that’s not a good thing to do outright.

Is there a hook or filter that I can pass in the functions file that will allow for that?

Not sure if that’s a possibility or not.

Read more here: Filter to add has_archive for custom post type


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: