BBP_Topics_Admin::author_metabox()
Add the author info metabox
Description
Source
File: bp-forums/admin/topics.php
public function author_metabox() {
if ( $this->bail() ) return;
// Bail if post_type is not a topic
if ( empty( $_GET['action'] ) || ( 'edit' !== $_GET['action'] ) )
return;
// Add the metabox
add_meta_box(
'bbp_author_metabox',
__( 'Author Information', 'buddyboss' ),
'bbp_author_metabox',
$this->post_type,
'side',
'high'
);
do_action( 'bbp_author_metabox', get_the_ID() );
}
Changelog
| Version | Description |
|---|---|
| bbPress (r2828) | 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.