BP_Group_Extension::call_edit_screen()
Call the edit_screen() method.
Description
Previous versions of BP_Group_Extension required plugins to provide their own Submit button and nonce fields when building markup. In BP 1.8, this requirement was lifted – BP_Group_Extension now handles all required submit buttons and nonces.
We put the edit screen markup into an output buffer before echoing. This is so that we can check for the presence of a hardcoded submit button, as would be present in legacy plugins; if one is found, we do not auto-add our own button.
Source
File: bp-groups/classes/class-bp-group-extension.php
public function call_edit_screen() { ob_start(); call_user_func( $this->screens['edit']['screen_callback'], $this->group_id ); $screen = ob_get_contents(); ob_end_clean(); echo $this->maybe_add_submit_button( $screen ); $this->nonce_field( 'edit' ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.8.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.