{"id":204,"date":"2016-08-11T09:51:13","date_gmt":"2016-08-11T09:51:13","guid":{"rendered":"http:\/\/www.3pixls.com\/blog\/?p=204"},"modified":"2016-08-11T10:04:27","modified_gmt":"2016-08-11T10:04:27","slug":"customize-edit-my-profile-url-in-wordpress-admin-bar","status":"publish","type":"post","link":"https:\/\/www.3pixls.com\/blog\/customize-edit-my-profile-url-in-wordpress-admin-bar\/","title":{"rendered":"Customize \u2018Edit My Profile\u2019 URL in WordPress Admin Bar"},"content":{"rendered":"<p>A lot of sites have custom profile pages (not the general one you find in the WordPress admin > Users > Your Profile\/Edit My Profile). Profile After building an awesome edit profile page \u2013 your users log in, see the WordPress admin bar, click \u201cEdit My Profile\u201d and they end up at the WordPress general edit profile \u2013 not the one you want.<\/p>\n<p>No worries \u2013 you can easily customize the URL in the WordPress Admin by adding the following code to your theme\u2019s functions.php file:<br \/>\n[php]<br \/>\n\/**<br \/>\n * Customize Edit Profile URL in WordPress Admin Bar<br \/>\n * @param string $scheme The scheme to use. Default is &#8216;admin&#8217;. &#8216;http&#8217; or &#8216;https&#8217; can be passed to force those schemes.<br \/>\n*\/<br \/>\nadd_filter( &#8216;edit_profile_url&#8217;, &#8216;pxl_custom_profile_url&#8217;, 10, 3 );<br \/>\nfunction pxl_custom_profile_url( $url, $user_id, $scheme ) {<br \/>\n    $url = site_url( &#8216;\/edit-profile&#8217; );<br \/>\n    return $url;<br \/>\n}<br \/>\n[\/php]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A lot of sites have custom profile pages (not the general one you find in the WordPress admin > Users > Your Profile\/Edit My Profile). Profile After building an awesome edit profile page \u2013 your users log in, see the WordPress admin bar, click \u201cEdit My Profile\u201d and they end up at the WordPress general [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":199,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/posts\/204"}],"collection":[{"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":2,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":206,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions\/206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/media\/199"}],"wp:attachment":[{"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.3pixls.com\/blog\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}