install_plugins_pre_upload
This action is documented in wp-admin/plugin-install.php.
Description
do_action( 'install_plugins_pre_upload' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'install_plugins_pre_upload' );
- The following example is for adding a hook callback.
- // define the install_plugins_pre_upload callback
- function action_install_plugins_pre_upload( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'install_plugins_pre_upload', 'action_install_plugins_pre_upload', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'install_plugins_pre_upload', 'action_install_plugins_pre_upload', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/plugin-install.php
- do_action( 'install_plugins_pre_upload' );