BP_Members_Theme_Compat::directory_dummy_post()

Update the global $post with directory data.

Description

Source

File: bp-members/classes/class-bp-members-theme-compat.php

123
124
125
126
127
128
129
130
131
132
133
134
135
public function directory_dummy_post() {
    bp_theme_compat_reset_post( array(
        'ID'             => 0,
        'post_title'     => bp_get_directory_title( 'members' ),
        'post_author'    => 0,
        'post_date'      => 0,
        'post_content'   => '',
        'post_type'      => 'page',
        'post_status'    => 'publish',
        'is_page'        => true,
        'comment_status' => 'closed'
    ) );
}

Changelog

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.