WordPress at a glance
Главная Functions Theme (template) Other Theme Functions

Other Theme Functions (рубрика)

add_theme_support()

Registers theme support for a given feature.

bloginfo()

Displays information about the current site.

body_class()

Display the classes for the body element.

current_theme_supports()

Checks a theme's support for a given feature

get_custom_header_markup()

Retrieve the markup for a custom header.

get_custom_logo()

Returns a custom logo, linked to home.

get_header_image()

Retrieve header image for custom header.

get_header_image_tag()

Create image tag markup for a custom header image.

get_header_textcolor()

Retrieves the custom header text color in 3- or 6-digit hexadecimal form.

get_header_video_url()

Retrieve header video URL for custom header.

get_page_templates()

Get the Page Templates available in this theme

get_post_class()

Retrieves the classes for the post div as an array.

get_query_template()

Retrieve path to a template

get_stylesheet()

Retrieve name of the current stylesheet.

get_template()

Retrieve name of the current theme.

get_theme_mod()

Retrieve theme modification value for the current theme.

get_theme_mods()

Retrieve all theme modifications.

get_theme_root()

Retrieve path to themes directory.

has_custom_logo()

Determines whether the site has a custom logo.

has_header_image()

Check whether a header image is set or not.

has_header_video()

Check whether a header video is set or not.

is_child_theme()

Whether a child theme is in use.

is_header_video_active()

Checks whether the custom header video is eligible to show on the current page.

is_multi_author()

Does this site have more than one author

post_class()

Display the classes for the post div.

register_nav_menu()

Registers a navigation menu location for a theme.

register_nav_menus()

Registers navigation menu locations for a theme.

register_theme_directory()

Register a directory that can contain themes.

remove_theme_mod()

Remove theme modification name from current theme list.

remove_theme_mods()

Remove theme modifications option for current theme.

remove_theme_support()

Allows a theme to de-register its support of a certain feature

search_theme_directories()

Search all registered theme directories for complete and valid themes.

set_theme_mod()

Update theme modification value for the current theme.

single_month_title()

Display or retrieve page title for post archive based on date.

the_custom_header_markup()

Print the markup for a custom header.

the_custom_logo()

Displays a custom logo, linked to home.

the_header_video_url()

Display header video URL.

the_search_query()

Displays the contents of the search query variable.

unregister_nav_menu()

Unregisters a navigation menu location for a theme.

wp_custom_css_cb()

Render the Custom CSS style element.

wp_dequeue_style()

Remove a previously enqueued CSS stylesheet.

wp_deregister_style()

Remove a registered stylesheet.

wp_footer()

Fire the wp_footer action.

wp_get_archives()

Display archive links based on type and format.

wp_get_document_title()

Returns document title for the current page.

wp_get_theme()

Gets a WP_Theme object for a theme.

wp_get_themes()

Returns an array of WP_Theme objects based on the arguments.

wp_head()

Fire the wp_head action.

wp_is_mobile()

Test if the current browser runs on a mobile device (smart phone, tablet, etc.)

wp_nav_menu()

Displays a navigation menu.

wp_site_icon()

Display site icon meta tags.

wp_title()

Display or retrieve page title for all areas of blog.