Thread
:
[wordpress] Rewriting logout URL to /logout/[id]
View Single Post
12-18-2008, 07:16 PM
#
2
Salathe
Status:
Community Archaeologist
Join date:
Jul 2004
Location:
Scotland
Expertise:
Software Development
Software:
vim, PHP
Posts:
3,820
iTrader:
25
/ 100%
I haven't tried it, but a quick look at the wp_nonce_url source code and some jiggling around and here's what came out:
PHP Code:
$url
=
wp_specialchars
(
site_url
(
'logout/'
.
wp_create_nonce
(
'log-out'
),
'login'
));
Salathe
View Public Profile
Visit Salathe's homepage!
Find More Posts by Salathe