bbp_user_edit_after

Conditionally hook the core WordPress output actions to the end of the default user's edit profile template.

Description

bbp_user_edit_after(); 

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.


Usage

  1. if ( !function_exists( 'bbp_user_edit_after' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_user_edit_after(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/users/functions.php  
  1. function bbp_user_edit_after() { 
  2. $action = bbp_is_user_home_edit() ? 'show_user_profile' : 'edit_user_profile'; 
  3.  
  4. do_action( $action, get_userdata( bbp_get_displayed_user_id() ) );