Inline documentation for hooks in wp-admin/admin-post.php.
Props ericlewis, kpdesign. Fixes #25361. git-svn-id: https://develop.svn.wordpress.org/trunk@25589 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e62fb3972b
commit
05ffd2dad0
|
@ -23,6 +23,7 @@ require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
||||||
|
|
||||||
nocache_headers();
|
nocache_headers();
|
||||||
|
|
||||||
|
//duplicate_hook
|
||||||
do_action( 'admin_init' );
|
do_action( 'admin_init' );
|
||||||
|
|
||||||
$action = 'admin_post';
|
$action = 'admin_post';
|
||||||
|
@ -33,4 +34,12 @@ if ( !wp_validate_auth_cookie() )
|
||||||
if ( !empty($_REQUEST['action']) )
|
if ( !empty($_REQUEST['action']) )
|
||||||
$action .= '_' . $_REQUEST['action'];
|
$action .= '_' . $_REQUEST['action'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fires the requested handler action.
|
||||||
|
*
|
||||||
|
* admin_post_nopriv_{$_REQUEST['action']} is called for not-logged-in users.
|
||||||
|
* admin_post_{$_REQUEST['action']} is called for logged-in users.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*/
|
||||||
do_action( $action );
|
do_action( $action );
|
||||||
|
|
Loading…
Reference in New Issue