Inline documentation for hooks in wp-admin/update.php.
Props ninio, kpdesign. Fixes #25723. git-svn-id: https://develop.svn.wordpress.org/trunk@25951 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1c625a49ac
commit
eaedc9b427
@ -252,6 +252,15 @@ if ( isset($_GET['action']) ) {
|
|||||||
include(ABSPATH . 'wp-admin/admin-footer.php');
|
include(ABSPATH . 'wp-admin/admin-footer.php');
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
do_action('update-custom_' . $action);
|
/**
|
||||||
|
* Fires when a custom plugin or theme update request is received.
|
||||||
|
*
|
||||||
|
* The dynamic portion of the hook name, $action, refers to the action
|
||||||
|
* provided in the request for wp-admin/update.php. Can be used to
|
||||||
|
* provide custom update functionality for themes and plugins.
|
||||||
|
*
|
||||||
|
* @since 2.8.0
|
||||||
|
*/
|
||||||
|
do_action( "update-custom_{$action}" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user