BP_Group_Extension::call_edit_screen()
Call the edit_screen() method.
Description 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 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 Changelog
Version | Description |
---|---|
1.8.0 | Introduced. |