bp_profile_shortcode_metabox( WP_Post $post )
Shortcode metabox for the profile types admin edit screen.
Description
Parameters
- $post
-
(Required)
Source
File: bp-core/admin/bp-core-admin-functions.php
function bp_profile_shortcode_metabox( $post ) { $key = bp_get_member_type_key( $post->ID ); ?> <p><?php _e( 'To display all users with this profile type on a dedicated page, add the below shortcode to any WordPress page.', 'buddyboss' ); ?></p> <code id="member-type-shortcode"><?php echo '[profile type="'. $key .'"]' ?></code> <button class="copy-to-clipboard button" data-clipboard-target="#member-type-shortcode"><?php _e('Copy to clipboard', 'buddyboss' ) ?></button> <?php }
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.