BP_Groups_Theme_Compat::create_dummy_post()
Update the global $post with create screen data.
Description
Source
File: bp-groups/classes/class-bp-groups-theme-compat.php
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | public function create_dummy_post() { $title = __( 'Social Groups' , 'buddyboss' ); bp_theme_compat_reset_post( array ( 'ID' => 0, 'post_title' => $title , 'post_author' => 0, 'post_date' => 0, 'post_content' => '' , 'post_type' => 'page' , 'post_status' => 'publish' , 'is_page' => true, 'comment_status' => 'closed' ) ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.7.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.