Theme (template) (category)

after_switch_theme

Fires after the theme has been switched to a new one, when the theme is activated.

document_title_parts

Allows you to change the title of a WordPress site page.

get_search_form

Allows you to change the HTML of the search form.

site_icon_meta_tags

Allows you to change or extend the list of HTML meta tags for the site icon.

switch_theme

Fires when the theme is switched. Used when deactivating a theme.

template_include

Allows changing the path to the selected template file used to display the current page, such as single.php or page.php.

template_redirect

Fires before WordPress determines which template file to use to display the content.

theme_(post_type)_templates

Allows you to add or remove page templates for post types. These templates can be selected when publishing a post in the admin area.

theme_templates

Allows adding/removing page (post) template files used in the template selector when editing a post.

wp_after_load_template

Fires after a template is included (output).

wp_before_load_template

Fires before a template is included (output).

wp_body_open

Allows developers to inject code immediately after the opening <body> tag.

wp_enqueue_scripts

Allows you to enqueue scripts and styles for loading on the front end.

wp_footer

Fires in the page footer. Scripts, styles, and other assets are commonly included when this event fires. This is one of the main theme hooks.

wp_head

Fires in the page's <head> section. Scripts such as jQuery, site CSS, and SEO metadata such as title, description, and robots are commonly output at this point. This is one of the primary WordPress theme hooks.

wp_robots

Allows you to add or remove robots meta tag directives.