bp_group_shortcode_meta_box( WP_Post $post )

Shortcode metabox for the group types admin edit screen.

Description

Parameters

$post

(Required)

Source

File: bp-groups/bp-groups-admin.php

2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
function bp_group_shortcode_meta_box( $post ) {
 
    $key = bp_get_group_type_key( $post->ID );
    ?>
 
        <p><?php _e( 'To display all groups with this group type on a dedicated page, add this shortcode to any WordPress page.', 'buddyboss' ); ?></p>
        <code id="group-type-shortcode"><?php echo '[group type="'. $key .'"]' ?></code>
        <button class="copy-to-clipboard button"  data-clipboard-target="#group-type-shortcode"><?php _e('Copy to clipboard', 'buddyboss' ) ?></button>
 
    <?php
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.