ClassicPress logo
Skip to content
Filter by type:

Browse:

  • Home
  • WP-4.7.0 Added the $post_type parameter.

WP_Theme::get_page_templates()

Method: Returns the theme’s post templates for a given post type.

Source: wp-includes/class-wp-theme.php:1306

Used by 0 functions | Uses 0 functions

theme_{$post_type}_templates

Filter Hook: Filters list of page templates for a theme.

Source: wp-includes/class-wp-theme.php:1346

Used by 0 functions | Uses 0 functions

page_template_dropdown()

Function: Prints out option HTML elements for the page templates drop-down.

Source: wp-admin/includes/template.php:915

Used by 0 functions | Uses 0 functions

get_page_templates()

Function: Gets the page templates available in this theme.

Source: wp-admin/includes/theme.php:144

Used by 2 functions | Uses 1 function
ClassicPress Documentation • Made with ClassicPress
Privacy Policy