Security

Last Updated: August 31, 2021

Check the permission of the logged user

 // Additional permission check
    if( is_user_logged_in() )  // or e.g. current_user_can( 'manage_options' )
        return $dispatch_result;