wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/general-template.php › WordPress File
Functions94
› General template tags that can go anywhere in a template.
| Function | Short description |
|---|---|
| add_thickbox | Enqueues the default ThickBox js and css. |
| allowed_tags | Displays all of the allowed tags in HTML format with attributes. |
| bloginfo | Displays information about the current site. |
| calendar_week_mod | Gets number of days since the start of the week. |
| checked | Outputs the HTML checked attribute. |
| delete_get_calendar_cache | Purges the cached results of get_calendar. |
| disabled | Outputs the HTML disabled attribute. |
| feed_links | Displays the links to the general feeds. |
| feed_links_extra | Displays the links to the extra feeds such as category feeds. |
| get_archives_link | Retrieves archive link content based on predefined or custom code. |
| get_bloginfo | Retrieves information about the current site. |
| get_calendar | Displays calendar with days that have posts as links. |
| get_custom_logo | Returns a custom logo, linked to home unless the theme supports removing the link on the home page. |
| get_footer | Loads footer template. |
| get_header | Loads header template. |
| get_language_attributes | Gets the language attributes for the 'html' tag. |
| get_post_datetime | Retrieves post published or modified time as a `DateTimeImmutable` object instance. |
| get_post_modified_time | Retrieves the time at which the post was last modified. |
| get_post_time | Retrieves the localized time of the post. |
| get_post_timestamp | Retrieves post published or modified time as a Unix timestamp. |
| get_search_form | Displays search form. |
| get_search_query | Retrieves the contents of the search WordPress query variable. |
| get_sidebar | Loads sidebar template. |
| get_site_icon_url | Returns the Site Icon URL. |
| get_template_part | Loads a template part into a template. |
| get_the_archive_description | Retrieves the description for an author, post type, or term archive. |
| get_the_archive_title | Retrieves the archive title based on the queried object. |
| get_the_date | Retrieves the date of the post. |
| get_the_generator | Creates the generator XML or Comment for RSS, ATOM, etc. |
| get_the_modified_date | Retrieves the date on which the post was last modified. |
| get_the_modified_time | Retrieves the time at which the post was last modified. |
| get_the_post_type_description | Retrieves the description for a post type archive. |
| get_the_time | Retrieves the time of the post. |
| has_custom_logo | Determines whether the site has a custom logo. |
| has_site_icon | Determines whether the site has a Site Icon. |
| language_attributes | Displays the language attributes for the 'html' tag. |
| paginate_links | Retrieves paginated links for archive post pages. |
| post_type_archive_title | Displays or retrieves title for a post type archive. |
| register_admin_color_schemes | Registers the default admin color schemes. |
| rsd_link | Displays the link to the Really Simple Discovery service endpoint. |
| selected | Outputs the HTML selected attribute. |
| single_cat_title | Displays or retrieves page title for category archive. |
| single_month_title | Displays or retrieves page title for post archive based on date. |
| single_post_title | Displays or retrieves page title for post. |
| single_tag_title | Displays or retrieves page title for tag post archive. |
| single_term_title | Displays or retrieves page title for taxonomy term archive. |
| site_icon_url | Displays the Site Icon URL. |
| the_archive_description | Displays category, tag, term, or author description. |
| the_archive_title | Displays the archive title based on the queried object. |
| the_custom_logo | Displays a custom logo, linked to home unless the theme supports removing the link on the home page. |
| the_date | Displays or retrieves the date of the post (once per date). |
| the_date_xml | Outputs the date in iso8601 format for xml files. |
| the_generator | Displays the generator XML or Comment for RSS, ATOM, etc. |
| the_modified_date | Displays the date on which the post was last modified. |
| the_modified_time | Displays the time at which the post was last modified. |
| the_search_query | Displays the contents of the search query variable. |
| the_time | Displays the time of the post. |
| the_weekday | Displays the localized weekday for the post. |
| the_weekday_date | Displays the localized weekday for the post. |
| user_can_richedit | Determines whether the user can access the visual editor. |
| wp_admin_css | Enqueues or directly prints a stylesheet link to the specified CSS file. |
| wp_admin_css_color | Registers an admin color scheme css file. |
| wp_admin_css_uri | Displays the URL of a WordPress admin CSS file. |
| wp_body_open | Fires the wp_body_open action. |
| wp_default_editor | Finds out which editor should be displayed by default. |
| wp_dependencies_unique_hosts | Retrieves a list of unique hosts of all enqueued scripts and styles. |
| wp_editor | Renders an editor. |
| wp_enqueue_code_editor | Enqueues assets needed by the code editor for the given settings. |
| wp_enqueue_editor | Outputs the editor scripts, stylesheets, and default settings. |
| wp_footer | Fires the wp_footer action. |
| wp_generator | Displays the XHTML generator that is generated on the wp_head hook. |
| wp_get_archives | Displays archive links based on type and format. |
| wp_get_code_editor_settings | Generates and returns code editor settings. |
| wp_get_document_title | Returns document title for the current page. |
| wp_head | Fires the wp_head action. |
| wp_heartbeat_settings | Default settings for heartbeat. |
| wp_loginout | Displays the Log In/Out link. |
| wp_login_form | Provides a simple login form for use anywhere within WordPress. |
| wp_login_url | Retrieves the login URL. |
| wp_logout_url | Retrieves the logout URL. |
| wp_lostpassword_url | Returns the URL that allows the user to reset the lost password. |
| wp_meta | Theme container function for the 'wp_meta' action. |
| wp_preload_resources | Prints resource preloads directives to browsers. |
| wp_readonly | Outputs the HTML readonly attribute. |
| wp_register | Displays the Registration or Admin link. |
| wp_registration_url | Returns the URL that allows the user to register on the site. |
| wp_required_field_indicator | Assigns a visual indicator for required form fields. |
| wp_required_field_message | Creates a message to explain required form fields. |
| wp_resource_hints | Prints resource hints to browsers for pre-fetching, pre-rendering and pre-connecting to websites. |
| wp_site_icon | Displays site icon meta tags. |
| wp_strict_cross_origin_referrer | Displays a referrer `strict-origin-when-cross-origin` meta tag. |
| wp_title | Displays or retrieves page title for all areas of blog. |
| _wp_render_title_tag | Displays title tag with content. |
| __checked_selected_helper | Private helper function for checked, selected, disabled and readonly. |