Custom 'Edit Profile' Location in Wordpress -


what trying have edit profile option in admin bar @ top of wordpress page go url.

basically instead of going /wp-admin directory

i trying go the /editprofile.php page.

you can use filter edit_profile_url:

add_filter( 'edit_profile_url', 'custom_profile_link_so_19216787', 10, 3 );  function custom_profile_link_so_19216787( $url, $user, $scheme ) {     return site_url( 'editprofile' ); } 

i suppose /editprofile.php page using template , address example.com/editprofile. if that's not case, put full url instead of site_url($slug).

related: where put code: plugin or functions.php?


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -