install_themes_pre_{$tab} WordPress Action Hook

This hook is called before installing a theme. It is used to do any necessary pre-installation tasks, such as checking that the theme is compatible with the current WordPress version.

do_action( "install_themes_pre_{$tab}" ) #

Fires before each of the tabs are rendered on the Install Themes page.


Description

The dynamic portion of the hook name, $tab, refers to the current theme installation tab.

Possible hook names include:

  • install_themes_pre_dashboard
  • install_themes_pre_featured
  • install_themes_pre_new
  • install_themes_pre_search
  • install_themes_pre_updated
  • install_themes_pre_upload

Top ↑

Source

File: wp-admin/theme-install.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.