BBP_Topics_Admin::author_metabox()

Add the author info metabox

Description

Source

File: bp-forums/admin/topics.php

377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
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

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.