bp_profile_search_add_main_form()
Add BuddyBoss Profile Search form.
Description
Source
File: bp-core/profile-search/bps-start.php
function bp_profile_search_add_main_form () {
$post_args = array(
'post_title' => __( 'Filter Results', 'buddyboss' ),
'post_type' => 'bp_ps_form',
'post_status' => 'publish',
);
$post_id = wp_insert_post( $post_args, true );
if ( !is_wp_error( $post_id ) ) {
bp_update_option ( 'bp_profile_search_main_form', $post_id );
}
}
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.