BBP_Replies_Admin::author_metabox()

Add the author info metabox

Description

Allows editing of information about an author

Source

File: bp-forums/admin/replies.php

362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
public function author_metabox() {
 
    if ( $this->bail() ) return;
 
    // Bail if post_type is not a reply
    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.