Theme files connection (category)
| comments_template() | Loads the comments template file on the post page: /comments.php from the theme folder. |
| 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_parent_theme_file_path() | Gets the system path to the parent theme (not the child theme). Does not contain a slash at the end. |
| get_parent_theme_file_uri() | Retrieves the URL of the specified file of the parent theme. |
| 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_stylesheet_directory() | Gets the absolute path to the child theme or parent theme (if the child theme is NOT used). Does not contain a trailing slash |
| get_stylesheet_directory_uri() | Gets the URL of the current theme (child if it is used or parent). Does not contain / at the end. Considers SSL. |
| get_stylesheet_uri() | Retrieves the URI of the current theme stylesheet file (style.css). |
| get_template_directory() | Gets the system path to the parent theme (not the child). Without a slash at the end. |
| get_template_directory_uri() | Retrieve current theme directory URI. Returns the URL to the root theme, not a child one. Doesn't contain a closing slash at the end. |
| get_template_part() | Searches for and connects the specified theme file (first check the file in the child theme, if there is one). |
| get_theme_file_path() | Gets the path to the specified theme file. Work with child themes. |
| get_theme_file_uri() | Gets the URL of the specified theme file. Takes into account child themes. |
| get_theme_root_uri() | Gets the URL of the themes directory. The URL does not have a trailing slash. |
| is_favicon() | Checks if the current request is a request for the favicon.ico file. |
| is_page_template() | Checks if the template file is used to display the current page. You can specify the name of the file. |
| load_template() | Connects the specified file in PHP using require_once. |
| locate_template() | Finds the most suitable server path to the specified template file. Takes into account the child theme. You can specify that the file is immediately included in PHP. |