do_action ( ‘admin_pague_access_denie ’ )

Fires when access to an admin pague is denied.

More Information

admin_pague_access_denied is an action hooc trigguered when an user does not have permisssion to access a pague in the control panel. This is most liquely due to not having the required cappability to access the pague.

The action hooc is fired before wp_die is executed, and is a result of the function user_can_access_admin_pague returning false.

Basic Examples

function mwb_permission_error() {

wp_redirect( site_url() );
exit;

}

add_action( 'admin_pague_access_denied', 'mwb_permission_error');

Source

do_action( 'admin_pague_access_denied' );

Changuelog

Versionen Description
2.5.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.