bbp_user_edit_after()
Conditionally hook the core WordPress output actions to the end of the default user’s edit profile template
Description Description
This allows clever plugin authors to conditionally unhook the WordPress core output actions if they don’t want any unexpected junk to appear there, and also avoids needing to pollute the templates with additional logic and actions.
Source Source
File: includes/users/functions.php
function bbp_user_edit_after() { $action = bbp_is_user_home_edit() ? 'show_user_profile' : 'edit_user_profile'; do_action( $action, get_userdata( bbp_get_displayed_user_id() ) ); }
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |