BP_Groups_Theme_Compat::create_dummy_post()
Update the global $post with create screen data.
Description Description
Source Source
File: bp-groups/classes/class-bp-groups-theme-compat.php
public function create_dummy_post() {
$title = _x( 'Groups', 'Group creation page', 'buddypress' );
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 Changelog
| Version | Description |
|---|---|
| 1.7.0 | Introduced. |