WP_Theme::get_post_templates

Advertisement

Summery Summery

Returns the theme’s post templates.

Syntax Syntax

WP_Theme::get_post_templates()

Return Return

(string) Array of page templates, keyed by filename and post type, with the value of the translated header name.

Source Source

File: wp-includes/class-wp-theme.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.