views:

18

answers:

1

Ok, you know when you're editing a page in Wordpress? You can change the page template under Page Attributes. How can I call a list of the current theme's page templates? I need that to use in my plugin.

+1  A: 

get_page_templates returns an array of the page templates available for the current theme.

Richard M
Thanks, that works.
lucha libre