Skip to:
Content

Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#1972 closed enhancement (invalid)

add some values to $wp_query

Reported by: alexvorn2 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1.2
Component: Back-end Keywords:
Cc:

Description

like [is_bbp] => 1, so including a specific code in the templete to know that if this is bbPress page (forum, topic, edit-reply, user, edit-user, etc...) or not...

I mean to tell the page that this is a bbPress page an not other...

Change History (4)

comment:1 alexvorn218 months ago

I fount that we can use bbp_is_theme_compat_active() for this, but I'm not very sure...

comment:2 jaredatch18 months ago

  • Component changed from General to Back-end
  • Type changed from defect to enhancement

What's the use case?

You can likely use is_bbpress().

I believe you could use it with pre_get_posts() if needed, though not directly in the query.

comment:3 alexvorn218 months ago

  • Resolution set to invalid
  • Status changed from new to closed

comment:4 johnjamesjacoby18 months ago

  • Milestone Awaiting Review deleted

When closing tickets that are in awaiting review, please mark the milestone as empty.

Note: See TracTickets for help on using tickets.