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() ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.