page_template_dropdown( string $default = '', string $post_type = 'page' )

Print out option HTML elements for the page templates drop-down.


25 related functions found for: page_template_dropdown

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordsdropdown, page, post-typ, post-type, templat, template, template-php, wp-admin
wp-parser-packageAdministration, WordPress
wp-parser-source-filewp-admin/includes/template.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • Administration
  • dropdown
  • page
  • post-typ
  • post-type
  • templat
  • template
  • template-php
  • wp-admin
  • wp-admin/includes/template.php

Top ↑

Description Description


Top ↑

Parameters Parameters

$default

(string) (Optional) The template file name.

Default value: ''

$post_type

(string) (Optional) Post type to get templates for. Default 'post'.

Default value: 'page'


Top ↑

Source Source

File: wp-admin/includes/template.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Added the $post_type parameter.
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.