title: how to redirect Wordpress 404 page through function()
body: <p>I want to change a role in my wordpress plugin.</p>
  
  <pre><code>            if ( is_admin() &amp;&amp; ! is_user_logged_in() &amp;&amp; ! defined( 'DOING_AJAX' ) &amp;&amp; $pagenow !== 'admin-post.php' ) {
              wp_die( __( 'This has been disabled', 'wp-hide-login' ), 403 );
          }
  
          $request = parse_url( $_SERVER['REQUEST_URI'] );
  </code></pre>
  
  <p>When my plugin get the action, Wordpress shows "This has been disabled" under WP default (admin-post.php) page.
  But i need when my function get assign it's redirect to 404 page.</p>
  
  <p>As like as  "This has been disabled" > <a href="http://www.example.com/404" rel="nofollow noreferrer">http://www.example.com/404</a></p>