Would like to customize or remove _wpnonce globally

I see that there’s an htaccess rule but I am unsure how to apply it to multiple pages or globally :

RewriteRule ^logout/(.*) /wp-login.php?action=logout&_wpnonce=$1

Im using this as a reference of knowing at least the customization is possible:

“By default, wp_nonce_url() adds a field named _wpnonce. You can specify a different name in the function call. For example:”

$complete_url = wp_nonce_url( $bare_url, ‘trash-post_’.$post->ID, ‘my_nonce’ );

Imma cry if we can figure this out lol

Read more here:: Would like to customize or remove _wpnonce globally

Leave a Reply

Your email address will not be published. Required fields are marked *