I want to change the address of My Account page.
It says right now my-account
after Website URL. ie
Website URL/my-account
I want to make it myaccount For eg
website URl/myaccount
There are 2 ways to do the same,
1) You can change the slug from WP-Admin->Pages->My Account
page.
2) By defining custom rewrite rule,
function custom_rewrite_tag() {
add_rewrite_tag('%myaccount%', 'my-account');
}
add_action('init', 'custom_rewrite_tag', 10, 0);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.