简体   繁体   中英

BuddyPress after profile content

In a buddypress site, on the profile page there is this line of code

<?php do_action( 'bp_after_profile_content' ) ?>

Which generates a 'flag this user link'.

What I would like to know is where this file that generates that is as I am, trying to modify it to remove that link from after the profile and place it somewhere else on the profile.

Thanks!

'bp_after_profile_content' is an action , which means there are (probably) a number of other functions hooked into it that actually create the content. Search the BuddyPress source ( grep , which I can't work without, or some equivalent) for "add_action( 'bp_after_profile_content' " and you should be able to find those functions. Once you find the function inserting that link you can probably remove it with remove_action() and then hack things to move that link.

<?php do_action( 'bp_after_profile_content' ) ?> code in your profile.php file.

  • Remove link in your profile page: Simple just remove the code from your profile.php theme file.
  • Put profile link to somewhere else: Put this code where you display the profile link.

Thanks

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM