[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-activity/ -> bp-activity-admin.php (summary)

BuddyPress Activity component admin screen. Props to WordPress core for the Comments admin screen, and its contextual help text, on which this implementation is heavily based.

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

Defines 15 functions

  bp_activity_add_admin_menu()
  bp_activity_admin_menu_order()
  bp_activity_admin_reply()
  bp_activity_admin_screen_options()
  bp_activity_admin_edit_hidden_metaboxes()
  bp_activity_admin_load()
  bp_activity_admin()
  bp_activity_admin_edit()
  bp_activity_admin_edit_metabox_status()
  bp_activity_admin_edit_metabox_link()
  bp_activity_admin_edit_metabox_userid()
  bp_activity_admin_get_activity_actions()
  bp_activity_admin_edit_metabox_type()
  bp_activity_admin_edit_metabox_itemids()
  bp_activity_admin_index()

Functions
Functions that are not part of a class:

bp_activity_add_admin_menu()   X-Ref
Register the Activity component admin screen.

since: 1.6.0

bp_activity_admin_menu_order( $custom_menus = array()   X-Ref
Add activity component to custom menus array.

Several BuddyPress components have top-level menu items in the Dashboard,
which all appear together in the middle of the Dashboard menu. This function
adds the Activity page to the array of these menu items.

since: 1.7.0
return: array $custom_menus List of top-level BP menu items, with Activity added.
param: array $custom_menus The list of top-level BP menu items.

bp_activity_admin_reply()   X-Ref
AJAX receiver for Activity replies via the admin screen.

Processes requests to add new activity comments, and echoes HTML for a new
table row.

since: 1.6.0

bp_activity_admin_screen_options( $value, $option, $new_value )   X-Ref
Handle save/update of screen options for the Activity component admin screen.

since: 1.6.0
return: string|int Option value. False to abandon update.
param: string $value     Will always be false unless another plugin filters it first.
param: string $option    Screen option name.
param: string $new_value Screen option form value.

bp_activity_admin_edit_hidden_metaboxes( $hidden, $screen )   X-Ref
Hide the advanced edit meta boxes by default, so we don't clutter the screen.

since: 1.6.0
return: array Hidden Meta Boxes.
param: array     $hidden Array of items to hide.
param: WP_Screen $screen Screen identifier.

bp_activity_admin_load()   X-Ref
Set up the Activity admin page.

Does the following:
- Register contextual help and screen options for this admin page.
- Enqueues scripts and styles.
- Catches POST and GET requests related to Activity.

since: 1.6.0

bp_activity_admin()   X-Ref
Output the Activity component admin screens.

since: 1.6.0

bp_activity_admin_edit()   X-Ref
Display the single activity edit screen.

since: 1.6.0

bp_activity_admin_edit_metabox_status( $item )   X-Ref
Status metabox for the Activity admin edit screen.

since: 1.6.0
param: object $item Activity item.

bp_activity_admin_edit_metabox_link( $item )   X-Ref
Primary link metabox for the Activity admin edit screen.

since: 1.6.0
param: object $item Activity item.

bp_activity_admin_edit_metabox_userid( $item )   X-Ref
User ID metabox for the Activity admin edit screen.

since: 1.6.0
param: object $item Activity item.

bp_activity_admin_get_activity_actions()   X-Ref
Get flattened array of all registered activity actions.

Format is [activity_type] => Pretty name for activity type.

since: 2.0.0
return: array $actions

bp_activity_admin_edit_metabox_type( $item )   X-Ref
Activity type metabox for the Activity admin edit screen.

since: 1.6.0
param: object $item Activity item.

bp_activity_admin_edit_metabox_itemids( $item )   X-Ref
Primary item ID/Secondary item ID metabox for the Activity admin edit screen.

since: 1.6.0
param: object $item Activity item.

bp_activity_admin_index()   X-Ref
Display the Activity admin index screen, which contains a list of all the activities.

since: 1.6.0



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