bp_ps_edit_form_preview_button( $post )
Output BuddyBoss profile search preview button.
Description
Source
File: bp-core/profile-search/bps-admin.php
function bp_ps_edit_form_preview_button ( $post ) {
if ( $post->post_type == 'bp_ps_form' ) {
$members_directory = trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() );
echo "<a href='". esc_attr( $members_directory ) ."' class='button button-secondary' target='_blank'>". __( 'Preview', 'buddyboss' ) ."</a>";
}
}
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.