[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/includes/admin/ -> topics.php (summary)

bbPress Topics Admin Class

File Size: 1259 lines (44 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BBP_Topics_Admin:: (30 methods):
  __construct()
  setup_actions()
  setup_globals()
  edit_help()
  new_help()
  bulk_actions()
  bulk_post_updated_messages()
  handle_bulk_actions()
  attributes_metabox()
  author_metabox()
  replies_metabox()
  engagements_metabox()
  favorites_metabox()
  subscriptions_metabox()
  comments_metabox()
  save_meta_boxes()
  toggle_topic()
  toggle_topic_notice()
  get_row_action_sort_order()
  get_allowed_notice_toggles()
  get_allowed_action_toggles()
  column_headers()
  column_data()
  row_actions()
  sort_row_actions()
  filter_dropdown()
  filter_empty_spam()
  filter_post_rows()
  updated_messages()
  bbp_admin_topics()


Class: BBP_Topics_Admin  - X-Ref

Loads bbPress topics admin area

__construct()   X-Ref
The main bbPress topics admin loader

since: 2.0.0 bbPress (r2515)

setup_actions()   X-Ref
Setup the admin hooks, actions and filters

since: 2.0.0 bbPress (r2646)
since: 2.6.0 bbPress (r6101) Added bulk actions

setup_globals()   X-Ref
Admin globals

since: 2.0.0 bbPress (r2646)

edit_help()   X-Ref
Contextual help for bbPress topic edit page

since: 2.0.0 bbPress (r3119)

new_help()   X-Ref
Contextual help for bbPress topic edit page

since: 2.0.0 bbPress (r3119)

bulk_actions( $actions )   X-Ref
Add spam/unspam bulk actions to the bulk action dropdown.

return: array The filtered list of bulk actions.
param: array $actions The list of bulk actions.
since: 2.6.0 bbPress (r6101)

bulk_post_updated_messages( $bulk_messages, $bulk_counts )   X-Ref
Add custom bulk action updated messages for topics.

param: array $bulk_messages Arrays of messages, each keyed by the corresponding post type.
param: array $bulk_counts   Array of item counts for each message, used to build internationalized strings.
since: 2.6.0 bbPress (r6101)

handle_bulk_actions( $sendback, $doaction, $post_ids )   X-Ref
Handle spam/unspam bulk actions.

return: string The sendback URL.
param: string $sendback The sendback URL.
param: string $doaction The action to be taken.
param: array  $post_ids The post IDS to take the action on.
since: 2.6.0 bbPress (r6101)

attributes_metabox()   X-Ref
Add the topic attributes meta-box

since: 2.0.0 bbPress (r2744)

author_metabox()   X-Ref
Add the author info meta-box

since: 2.0.0 bbPress (r2828)

replies_metabox()   X-Ref
Add the replies meta-box

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)

engagements_metabox()   X-Ref
Add the engagements meta-box

Allows viewing of users who have engaged in a topic.

since: 2.6.0 bbPress (r6333)

favorites_metabox()   X-Ref
Add the favorites meta-box

Allows viewing of users who have favorited a topic.

since: 2.6.0 bbPress (r6197)

subscriptions_metabox()   X-Ref
Add the subscriptions meta-box

Allows viewing of users who have subscribed to a topic.

since: 2.6.0 bbPress (r6197)

comments_metabox()   X-Ref
Remove comments & discussion meta-boxes if comments are not supported

since: 2.6.0 bbPress (r6186)

save_meta_boxes( $topic_id )   X-Ref
Pass the topic attributes for processing

return: int Parent id
param: int $topic_id Topic id
since: 2.0.0 bbPress (r2746)

toggle_topic()   X-Ref
Toggle topic

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

since: 2.0.0 bbPress (r2727)

toggle_topic_notice()   X-Ref
Toggle topic notices

Display the success/error notices from
{@link BBP_Admin::toggle_topic()}

since: 2.0.0 bbPress (r2727)

get_row_action_sort_order()   X-Ref
Returns an array of keys used to sort row actions

return: array
since: 2.6.0 bbPress (r6771)

get_allowed_notice_toggles()   X-Ref
Returns an array of notice toggles

return: array
since: 2.6.0 bbPress (r6396)

get_allowed_action_toggles()   X-Ref
Returns an array of notice toggles

return: array
since: 2.6.0 bbPress (r6396)

column_headers( $columns )   X-Ref
Manage the column headers for the topics page

return: array $columns bbPress topic columns
param: array $columns The columns
since: 2.0.0 bbPress (r2485)

column_data( $column, $topic_id )   X-Ref
Print extra columns for the topics page

param: string $column Column
param: int $topic_id Topic id
since: 2.0.0 bbPress (r2485)

row_actions( $actions = array()   X-Ref
Topic Row actions

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

return: array $actions Actions
param: array  $actions Actions
param: object $topic   Topic object
since: 2.0.0 bbPress (r2485)

sort_row_actions( $actions = array()   X-Ref
Sort row actions by key

return: array
param: array $actions
since: 2.6.0

filter_dropdown()   X-Ref
Add forum dropdown to topic and reply list table filters

return: bool False. If post type is not topic or reply
since: 2.0.0 bbPress (r2991)

filter_empty_spam()   X-Ref
Add "Empty Spam" button for moderators

since: 2.6.0 bbPress (r6791)

filter_post_rows( $query_vars )   X-Ref
Adjust the request query and include the forum id

return: array Processed Query Vars
param: array $query_vars Query variables from {@link WP_Query}
since: 2.0.0 bbPress (r2991)

updated_messages( $messages )   X-Ref
Custom user feedback messages for topic post type

return: array
param: array $messages
since: 2.0.0 bbPress (r3080)

bbp_admin_topics( $current_screen )   X-Ref
Setup bbPress Topics Admin

This is currently here to make hooking and unhooking of the admin UI easy.
It could use dependency injection in the future, but for now this is easier.

param: WP_Screen $current_screen Current screen object
since: 2.0.0 bbPress (r2596)



Generated: Wed Jul 24 01:01:31 2019 Cross-referenced by PHPXref 0.7.1