User can edit profile code

[ad_1]

I am needing to load a specific div that is displayed on a profile but can only be seen by the person that can edit that profile.

I note in the members-grid.php there is a code

if ( user.can_edit )

However that does not work on the profile.php file I have edited quite a lot.

Is there some code I can use in the profile.php file to only show a div if they can edit the profile they are viewing?

  • This topic was modified 1 hour, 32 minutes ago by GregW.
  • This topic was modified 1 hour, 31 minutes ago by GregW. Reason: more info to understand the question
  • This topic was modified 1 hour, 28 minutes ago by GregW.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer