Loads bbPress topics admin area

package bbPress
subpackage Administration
since 2.0.0 bbPress (r2464)

 Methods

The main bbPress topics admin loader

__construct() 
since 2.0.0 bbPress (r2515)

Add the topic attributes meta-box

attributes_metabox() 
since 2.0.0 bbPress (r2744)

Add the author info meta-box

author_metabox() 
since 2.0.0 bbPress (r2828)

Add spam/unspam bulk actions to the bulk action dropdown.

bulk_actions(array $actions) : array
since 2.6.0 bbPress (r6101)

Parameters

$actions

array

The list of bulk actions.

Returns

arrayThe filtered list of bulk actions.

Add custom bulk action updated messages for topics.

bulk_post_updated_messages(array $bulk_messages, array $bulk_counts) 
since 2.6.0 bbPress (r6101)

Parameters

$bulk_messages

array

Arrays of messages, each keyed by the corresponding post type.

$bulk_counts

array

Array of item counts for each message, used to build internationalized strings.

Print extra columns for the topics page

column_data(string $column, integer $topic_id) 
since 2.0.0 bbPress (r2485)

Parameters

$column

string

Column

$topic_id

integer

Topic id

Manage the column headers for the topics page

column_headers(array $columns) : array
since 2.0.0 bbPress (r2485)

Parameters

$columns

array

The columns

Returns

array$columns bbPress topic columns

Remove comments & discussion meta-boxes if comments are not supported

comments_metabox() 
since 2.6.0 bbPress (r6186)

Contextual help for bbPress topic edit page

edit_help() 
since 2.0.0 bbPress (r3119)

Add the engagements meta-box

engagements_metabox() 

Allows viewing of users who have engaged in a topic.

since 2.6.0 bbPress (r6333)

Add the favorites meta-box

favorites_metabox() 

Allows viewing of users who have favorited a topic.

since 2.6.0 bbPress (r6197)

Add forum dropdown to topic and reply list table filters

filter_dropdown() : boolean
since 2.0.0 bbPress (r2991)

Returns

booleanFalse. If post type is not topic or reply

Add "Empty Spam" button for moderators

filter_empty_spam() 
since 2.6.0 bbPress (r6791)

Adjust the request query and include the forum id

filter_post_rows(array $query_vars) : array
since 2.0.0 bbPress (r2991)

Parameters

$query_vars

array

Query variables from {@link WP_Query}

Returns

arrayProcessed Query Vars

Handle spam/unspam bulk actions.

handle_bulk_actions(string $sendback, string $doaction, array $post_ids) : string
since 2.6.0 bbPress (r6101)

Parameters

$sendback

string

The sendback URL.

$doaction

string

The action to be taken.

$post_ids

array

The post IDS to take the action on.

Returns

stringThe sendback URL.

Contextual help for bbPress topic edit page

new_help() 
since 2.0.0 bbPress (r3119)

Add the replies meta-box

replies_metabox() 

Allows viewing & moderating of replies to a topic, based on the way comments are visible on a blog post.

since 2.6.0 bbPress (r5886)

Topic Row actions

row_actions(array $actions = array(), object $topic = false) : array

Remove the quick-edit action link under the topic title and add the content and close/stick/spam links

since 2.0.0 bbPress (r2485)

Parameters

$actions

array

Actions

$topic

object

Topic object

Returns

array$actions Actions

Pass the topic attributes for processing

save_meta_boxes(integer $topic_id) : integer
since 2.0.0 bbPress (r2746)

Parameters

$topic_id

integer

Topic id

Returns

integerParent id

Add the subscriptions meta-box

subscriptions_metabox() 

Allows viewing of users who have subscribed to a topic.

since 2.6.0 bbPress (r6197)

Toggle topic

toggle_topic() 

Handles the admin-side opening/closing, sticking/unsticking and spamming/unspamming of topics

since 2.0.0 bbPress (r2727)

Toggle topic notices

toggle_topic_notice() 

Display the success/error notices from \BBP_Admin::toggle_topic()

since 2.0.0 bbPress (r2727)

Custom user feedback messages for topic post type

updated_messages(array $messages) : array
since 2.0.0 bbPress (r3080)
global int $post_ID

Parameters

$messages

array

Returns

array

Returns an array of notice toggles

get_allowed_action_toggles() : array
since 2.6.0 bbPress (r6396)

Returns

array

Returns an array of notice toggles

get_allowed_notice_toggles() : array
since 2.6.0 bbPress (r6396)

Returns

array

Returns an array of keys used to sort row actions

get_row_action_sort_order() : array
since 2.6.0 bbPress (r6771)

Returns

array

Setup the admin hooks, actions and filters

setup_actions() 
since 2.0.0 bbPress (r2646)
since 2.6.0 bbPress (r6101) Added bulk actions
access private

Admin globals

setup_globals() 
since 2.0.0 bbPress (r2646)
access private

Sort row actions by key

sort_row_actions(array $actions = array()) : array
since 2.6.0

Parameters

$actions

array

Returns

array

 Properties

 

post type of this admin component

$post_type : \The

Default

''