Main Functions (category)
| bloginfo() | Displays information about the current site. |
| calendar_week_mod() | Translates the entered integer to the number of days since the beginning of the week: |
| get_archives_link() | Gets the link to the archive page. Assembles the link from the provided: URL, link anchor, output format, text before and after. |
| get_bloginfo() | Gets information about the site from the settings. |
| get_calendar() | Displays the calendar on the screen (by default, the current month). |
| get_current_blog_id() | Retrieve the current site (blog) ID. |
| get_footer() | Includes the footer.php template file from your current theme's directory. If a $name is specified then footer-{name}.php file will be included. |
| get_header() | Includes the header.php template file from your current theme's directory. If a $name is specified then header-{name}.php file will be included. |
| get_search_form() | Connects the search form, theme file searchform.php. If such a file is not present in the theme template, the default code for the search form will be used. |
| get_sidebar() | Connects the template file |
| get_template_part() | Searches for and connects the specified theme file (first check the file in the child theme, if there is one). |
| is_404() | Checks whether the 404 error page is displayed (HTTP 404: page not found). Conditional tag. |
| is_active_sidebar() | Checks if the specified widget panel (area for widgets, sidebar) is used. It will trigger if there is at least one widget in the widget area. Conditional tag. |
| is_admin() | Checks if the user is in the admin panel of the site (console or any other admin page). Conditional tag. |
| is_archive() | Conditional tag. Return true when any of the archive pages are shown (Year, Category, Author, Post Type archive...). |
| is_attachment() | Checks if the current page is an attachment page. Conditional Tag. |
| is_author() | Checks if the author's posts page is displayed. You can specify a specific author. Conditional tag. |
| is_category() | Conditional tag. Checks whether the category page is displayed or not. |
| is_comment_feed() | Checks if the request is a comment feed page. Conditional tag. |
| is_date() | Determines whether the date archive page is displayed. Conditional tag. |
| is_day() | Determines whether a day archive page is shown (example.com/2009/08/05) — page with posts for a specific day. A conditional tag. |
| is_dynamic_sidebar() | Defines whether the theme supports widgets and whether at least one sidebar has been added to the panel. Conditional tag. |
| is_embed() | Checks whether the request is a request for an embed post page. |
| is_feed() | Checks if a feed is being requested at the current moment. |
| is_front_page() | Checks whether the main (home) page of the site is displayed. Conditional tag. |
| is_home() | Checks whether the page showing posts is being displayed, usually this is the site's front page. Conditional tag. |
| is_month() | Determines whether a monthly archive page is shown (example.com/2009/08) — page with posts for a specific month. A conditional tag. |
| is_page_template() | Checks if the template file is used to display the current page. You can specify the name of the file. |
| is_paged() | Checks whether the pagination page is displayed (page type /page/2, /page/3). Conditional tag. |
| is_post_type_archive() | Checks if current user is on the archive page of custom post type. |
| is_preview() | Check if the user is on the post preview page. Conditional tag |
| is_search() | Works when the search results page is displayed. Conditional tag. |
| is_single() | Checks whether a post page (of any post type) is displayed. Posts with |
| is_singular() | Checks whether the post page is viewed (post, page, attachment, any post type). Conditional Tag. |
| is_ssl() | Checks whether secure HTTPS (SSL) connection is used. A conditional tag. |
| is_sticky() | Checks if the current post is attached to the top of the home page posts query. Conditional tag. |
| is_tag() | Check if the tag archive page is displayed. Conditional tag. |
| is_tax() | Works on the custom taxonomy archive page. Conditional tag. |
| is_year() | Determines whether a year archive page is shown (example.com/2009) — page with posts for a specific year. A conditional tag. |
| language_attributes() | Outputs attributes for the HTML tag <html> with the values of the current language: lang="ru-RU" |
| post_type_archive_title() | Outputs or returns the title for the archive page of a custom post type. |
| register_sidebar() | Registers a widget panel (a place where widgets are placed in the admin panel to later display them on the front end). |
| setup_postdata() | Sets up all urgent data of the post (except global $post variable). |
| the_archive_description() | Display the description of the post type, category, tag, term, or author archive page. |
| the_archive_title() | Display the archive page title, based on the type of page (tag, term, category, date). |
| wp_enqueue_script() | Correctly connects the script (JavaScript file) to the page. |
| wp_enqueue_style() | Correctly adds a CSS style file. Registers the style file if it has not been registered yet. |
| wp_footer() | Fires the wp_footer action. This is one of the most important hooks, many plugins will not work without it. It needs to be called in the theme footer, in footer.php file. |
| wp_get_archives() | Outputs a list of links to archive pages by date (days, months, years). |
| wp_get_document_title() | Gets the title of the current page (document), which is typically output in the HTML tag <title>. |
| wp_head() | Triggers the hook event wp_head. Called in the header of the site in the file: header.php |
| wp_login_form() | Outputs the HTML code for the login form. |
| wp_login_url() | Gets the login/authentication page URL: /wp-login.php |
| wp_loginout() | Outputs a "login" link if the user is not authenticated and a "logout" link if authenticated. |
| wp_logout_url() | Retrieves the logout URL. Returns the URL that allows the authorized user to log out of the site. |
| wp_lostpassword_url() | Gets the URL (link) to the password recovery page. Commonly used in the template (template tag). |
| wp_register() | Displays either the link to the dashboard ("Site Admin") if the user is logged in or "Register" link if the user is not logged in. |
| wp_title() | Display or retrieve page title. |