Title: wp-admin/includes/template.php | Developer.WordPress.org

---

# File: wp-admin/includes/template.php

 * hook[post_states_html](https://developer.wordpress.org/reference/hooks/post_states_html/)
 * Filters the HTML string of post states.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/post_states_html/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/post_states_html/#uses)
   | Source: [wp-admin/includes/template.php:2284](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2284-L2284)
 * function[get_media_states()](https://developer.wordpress.org/reference/functions/get_media_states/)
 * Retrieves an array of media states from an attachment.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_media_states/#used-by)
   | Uses [15 functions](https://developer.wordpress.org/reference/functions/get_media_states/#uses)
   | Source: [wp-admin/includes/template.php:2416](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2416-L2487)
 * function[get_post_states()](https://developer.wordpress.org/reference/functions/get_post_states/)
 * Retrieves an array of post states from a post.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/get_post_states/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/get_post_states/#uses)
   | Source: [wp-admin/includes/template.php:2301](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2301-L2367)
 * function[do_block_editor_incompatible_meta_box()](https://developer.wordpress.org/reference/functions/do_block_editor_incompatible_meta_box/)
 * Renders a “fake” meta box with an information message, shown on the block editor,
   when an incompatible meta box is found.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_block_editor_incompatible_meta_box/#used-by)
   | Uses [12 functions](https://developer.wordpress.org/reference/functions/do_block_editor_incompatible_meta_box/#uses)
   | Source: [wp-admin/includes/template.php:1190](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L1190-L1239)
 * function[_get_plugin_from_callback()](https://developer.wordpress.org/reference/functions/_get_plugin_from_callback/)
 * Internal helper function to find the plugin from a meta box callback.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/_get_plugin_from_callback/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/_get_plugin_from_callback/#uses)
   | Source: [wp-admin/includes/template.php:1251](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L1251-L1287)
 * hook[add_inline_data](https://developer.wordpress.org/reference/hooks/add_inline_data/)
 * Fires after outputting the fields for the inline editor for posts and pages.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/add_inline_data/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/add_inline_data/#uses)
   | Source: [wp-admin/includes/template.php:397](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L397-L397)
 * hook[postmeta_form_keys](https://developer.wordpress.org/reference/hooks/postmeta_form_keys/)
 * Filters values for the meta key dropdown in the Custom Fields meta box.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/postmeta_form_keys/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/postmeta_form_keys/#uses)
   | Source: [wp-admin/includes/template.php:709](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L709-L709)
 * function[wp_star_rating()](https://developer.wordpress.org/reference/functions/wp_star_rating/)
 * Outputs a HTML element with a star rating for a given rating.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/wp_star_rating/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_star_rating/#uses)
   | Source: [wp-admin/includes/template.php:2764](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2764-L2807)
 * function[get_submit_button()](https://developer.wordpress.org/reference/functions/get_submit_button/)
 * Returns a submit button, with provided text and appropriate class.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/get_submit_button/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_submit_button/#uses)
   | Source: [wp-admin/includes/template.php:2600](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2600-L2649)
 * function[_wp_admin_html_begin()](https://developer.wordpress.org/reference/functions/_wp_admin_html_begin/)
 * Prints out the beginning of the admin HTML header.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/_wp_admin_html_begin/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/_wp_admin_html_begin/#uses)
   | Source: [wp-admin/includes/template.php:2658](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2658-L2684)
 * hook[admin_xml_ns](https://developer.wordpress.org/reference/hooks/admin_xml_ns/)
 * Fires inside the HTML tag in the admin header.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/admin_xml_ns/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/admin_xml_ns/#uses)
   | Source: [wp-admin/includes/template.php:2676](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2676-L2676)
 * function[convert_to_screen()](https://developer.wordpress.org/reference/functions/convert_to_screen/)
 * Converts a screen string to a screen object.
 * Used by [12 functions](https://developer.wordpress.org/reference/functions/convert_to_screen/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/convert_to_screen/#uses)
   | Source: [wp-admin/includes/template.php:2694](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2694-L2714)
 * function[_local_storage_notice()](https://developer.wordpress.org/reference/functions/_local_storage_notice/)
 * Outputs the HTML for restoring the post data from DOM storage
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_local_storage_notice/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/_local_storage_notice/#uses)
   | Source: [wp-admin/includes/template.php:2722](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2722-L2739)
 * function[the_post_password()](https://developer.wordpress.org/reference/functions/the_post_password/)
 * Displays the post password.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/the_post_password/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/the_post_password/#uses)
   | Source: [wp-admin/includes/template.php:2077](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2077-L2082)
 * function[_draft_or_post_title()](https://developer.wordpress.org/reference/functions/_draft_or_post_title/)
 * Gets the post title.
 * Used by [11 functions](https://developer.wordpress.org/reference/functions/_draft_or_post_title/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/_draft_or_post_title/#uses)
   | Source: [wp-admin/includes/template.php:2095](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2095-L2101)
 * function[_admin_search_query()](https://developer.wordpress.org/reference/functions/_admin_search_query/)
 * Displays the search query.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/_admin_search_query/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/_admin_search_query/#uses)
   | Source: [wp-admin/includes/template.php:2111](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2111-L2113)
 * function[iframe_header()](https://developer.wordpress.org/reference/functions/iframe_header/)
 * Generic Iframe header for use with Thickbox.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/iframe_header/#used-by)
   | Uses [16 functions](https://developer.wordpress.org/reference/functions/iframe_header/#uses)
   | Source: [wp-admin/includes/template.php:2128](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2128-L2202)
 * function[iframe_footer()](https://developer.wordpress.org/reference/functions/iframe_footer/)
 * Generic Iframe footer for use with Thickbox.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/iframe_footer/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/iframe_footer/#uses)
   | Source: [wp-admin/includes/template.php:2209](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2209-L2237)
 * function[_post_states()](https://developer.wordpress.org/reference/functions/_post_states/)
 * Echoes or returns the post states as HTML.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/_post_states/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/_post_states/#uses)
   | Source: [wp-admin/includes/template.php:2252](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2252-L2291)
 * hook[display_post_states](https://developer.wordpress.org/reference/hooks/display_post_states/)
 * Filters the default post display states used in the posts list table.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/display_post_states/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/display_post_states/#uses)
   | Source: [wp-admin/includes/template.php:2366](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2366-L2366)
 * function[_media_states()](https://developer.wordpress.org/reference/functions/_media_states/)
 * Outputs the attachment media states as HTML.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/_media_states/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/_media_states/#uses)
   | Source: [wp-admin/includes/template.php:2380](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2380-L2406)
 * hook[display_media_states](https://developer.wordpress.org/reference/hooks/display_media_states/)
 * Filters the default media display states for items in the Media list table.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/display_media_states/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/display_media_states/#uses)
   | Source: [wp-admin/includes/template.php:2486](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2486-L2486)
 * function[add_settings_field()](https://developer.wordpress.org/reference/functions/add_settings_field/)
 * Adds a new field to a section of a settings page.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_settings_field/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/add_settings_field/#uses)
   | Source: [wp-admin/includes/template.php:1712](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L1712-L1747)
 * function[compression_test()](https://developer.wordpress.org/reference/functions/compression_test/)
 * Tests support for compressing JavaScript from PHP.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/compression_test/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/compression_test/#uses)
   | Source: [wp-admin/includes/template.php:2499](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2499-L2551)
 * function[do_settings_sections()](https://developer.wordpress.org/reference/functions/do_settings_sections/)
 * Prints out all settings sections added to a particular settings page.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/do_settings_sections/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/do_settings_sections/#uses)
   | Source: [wp-admin/includes/template.php:1763](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L1763-L1798)
 * function[submit_button()](https://developer.wordpress.org/reference/functions/submit_button/)
 * Echoes a submit button, with provided text and appropriate class(es).
 * Used by [42 functions](https://developer.wordpress.org/reference/functions/submit_button/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/submit_button/#uses)
   | Source: [wp-admin/includes/template.php:2575](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L2575-L2577)
 * function[do_settings_fields()](https://developer.wordpress.org/reference/functions/do_settings_fields/)
 * Prints out the settings fields for a particular settings section.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/do_settings_fields/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/do_settings_fields/#uses)
   | Source: [wp-admin/includes/template.php:1814](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L1814-L1841)
 * function[add_settings_error()](https://developer.wordpress.org/reference/functions/add_settings_error/)
 * Registers a settings error to be displayed to the user.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/add_settings_error/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/add_settings_error/#uses)
   | Source: [wp-admin/includes/template.php:1868](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L1868-L1877)
 * function[get_settings_errors()](https://developer.wordpress.org/reference/functions/get_settings_errors/)
 * Fetches settings errors registered by add_settings_error().
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_settings_errors/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/get_settings_errors/#uses)
   | Source: [wp-admin/includes/template.php:1915](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L1915-L1952)
 * function[settings_errors()](https://developer.wordpress.org/reference/functions/settings_errors/)
 * Displays settings errors registered by add_settings_error().
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/settings_errors/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/settings_errors/#uses)
   | Source: [wp-admin/includes/template.php:1983](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/template.php#L1983-L2021)

1 [2](https://developer.wordpress.org/reference/file/wp-admin/includes/template.php/page/2/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/file/wp-admin/includes/template.php/page/2/?output_format=md)