Get all pages that are published

I need to get all visible (published) pages and then determine which template they use. I need to do this in standard WordPress API not via the REST API.

Is there a function that can do that?

Read more here:: Get all pages that are published

Leave a Reply

Your email address will not be published. Required fields are marked *