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

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.