[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-members/classes/ -> class-bp-members-admin.php (summary)

BuddyPress Members Admin

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

Defines 1 class

BP_Members_Admin:: (50 methods):
  register_members_admin()
  __construct()
  setup_globals()
  setup_actions()
  multisite_registration_on()
  single_site_registration_on()
  get_user_id()
  member_can_edit()
  get_user_notice()
  user_profile_menu()
  admin_menus()
  set_submenu_page()
  profile_admin_head()
  admin_head()
  enqueue_scripts()
  profile_nav()
  user_admin_load()
  user_admin()
  user_admin_status_metabox()
  user_admin_spammer_metabox()
  user_admin_stats_metabox()
  user_admin_avatar_metabox()
  user_admin_member_type_metabox()
  process_member_type_update()
  row_actions()
  add_edit_profile_url_filter()
  filter_adminbar_profile_link()
  remove_edit_profile_url_filter()
  signup_screen_options()
  remove_signups_from_user_query()
  signup_filter_view()
  get_list_table_class()
  signups_admin_load()
  signups_display_errors()
  get_signup_notice()
  signups_admin()
  signups_admin_index()
  signups_admin_manage()
  users_table_output_type_change_select()
  users_table_process_bulk_type_change()
  users_type_change_notice()
  users_table_add_type_column()
  users_table_populate_type_cell()
  users_table_filter_by_type()
  format_xprofile_field_for_display()
  members_invitations_admin_load()
  get_members_invitations_notice()
  invitations_admin()
  invitations_admin_index()
  invitations_admin_manage()


Class: BP_Members_Admin  - X-Ref

Load Members admin area.

register_members_admin()   X-Ref
Setup BP Members Admin.

return: BP_Members_Admin
since: 2.0.0

__construct()   X-Ref
Constructor method.

since: 2.0.0

setup_globals()   X-Ref
Set admin-related globals.

since: 2.0.0

setup_actions()   X-Ref
Set admin-related actions and filters.

since: 2.0.0

multisite_registration_on( $option_name, $value )   X-Ref
Create registration pages when multisite user registration is turned on.

param: string $option_name Current option name; value is always 'registration'.
param: string $value
since: 2.7.0

single_site_registration_on( $old_value, $value )   X-Ref
Create registration pages when single site registration is turned on.

param: string $old_value
param: string $value
since: 2.7.0

get_user_id()   X-Ref
Get the user ID.

Look for $_GET['user_id']. If anything else, force the user ID to the
current user's ID so they aren't left without a user to edit.

return: int
since: 2.1.0

member_can_edit( $user_id = 0 )   X-Ref
Can the current user edit the one displayed.

Self profile editing / or bp_moderate check.
This might be replaced by more granular capabilities
in the future.

param: int $user_id ID of the user being checked for edit ability.
return: bool
since: 2.1.0

get_user_notice()   X-Ref
Get admin notice when saving a user or member profile.

return: array
since: 2.1.0

user_profile_menu()   X-Ref
Create the /user/ admin Profile submenus for all members.

since: 2.1.0

admin_menus()   X-Ref
Create the All Users / Profile > Edit Profile and All Users Signups submenus.

since: 2.0.0

set_submenu_page( &$submenu_pages )   X-Ref
Include the Members Invitations tab to the Admin tabs needing specific inline styles.

param: array $submenu_pages The BP_Admin submenu pages passed by reference.
since: 10.0.0

profile_admin_head()   X-Ref
Highlight the Users menu if on Edit Profile and check if on the user's admin profile.

since: 2.1.0

admin_head()   X-Ref
Remove the Edit Profile page.

We add these pages in order to integrate with WP's Users panel, but
we want them to show up as a row action of the WP panel, not as separate
subnav items under the Users menu.

since: 2.0.0

enqueue_scripts()   X-Ref
Add some specific styling to the Edit User and Edit User's Profile page.

since: 2.0.0

profile_nav( $user = null, $active = 'WordPress' )   X-Ref
Create the Profile navigation in Edit User & Edit Profile pages.

param: object|null $user   User to create profile navigation for.
param: string      $active Which profile to highlight.
return: string|null
since: 2.0.0

user_admin_load()   X-Ref
Set up the user's profile admin page.

Loaded before the page is rendered, this function does all initial
setup, including: processing form requests, registering contextual
help, and setting up screen options.

since: 2.0.0
since: 6.0.0 The `delete_avatar` action is now managed into this method.

user_admin()   X-Ref
Display the user's profile.

since: 2.0.0

user_admin_status_metabox( $user = null )   X-Ref
Render the Status metabox for user's profile screen.

Actions are:
- Update profile fields if xProfile component is active
- Spam/Unspam user

param: WP_User|null $user The WP_User object to be edited.
since: 2.0.0

user_admin_spammer_metabox( $user = null )   X-Ref
Render the fallback metabox in case a user has been marked as a spammer.

param: WP_User|null $user The WP_User object to be edited.
since: 2.0.0

user_admin_stats_metabox( $user = null )   X-Ref
Render the Stats metabox to moderate inappropriate images.

param: WP_User|null $user The WP_User object to be edited.
since: 2.0.0

user_admin_avatar_metabox( $user = null )   X-Ref
Render the Avatar metabox to moderate inappropriate images.

param: WP_User|null $user The WP_User object for the user being edited.
since: 6.0.0

user_admin_member_type_metabox( $user = null )   X-Ref
Render the Member Type metabox.

param: WP_User|null $user The WP_User object to be edited.
since: 2.2.0

process_member_type_update()   X-Ref
Process changes from the Member Type metabox.

since: 2.2.0

row_actions( $actions = '', $user = null )   X-Ref
Add a link to Profile in Users listing row actions.

param: array|string $actions WordPress row actions (edit, delete).
param: object|null  $user    The object for the user row.
return: null|string|array Merged actions.
since: 2.0.0

add_edit_profile_url_filter()   X-Ref
Add a filter to edit profile url in WP Admin Bar.

since: 2.1.0

filter_adminbar_profile_link( $profile_link = '', $url = '', $user_id = 0 )   X-Ref
Filter the profile url.

param: string $profile_link Profile Link for admin bar.
param: string $url          Profile URL.
param: int    $user_id      User ID.
return: string
since: 2.1.0

remove_edit_profile_url_filter()   X-Ref
Remove the filter to edit profile url in WP Admin Bar.

since: 2.1.0

signup_screen_options( $value = 0, $option = '', $new_value = 0 )   X-Ref
Display the admin preferences about signups pagination.

param: int    $value     Value for signup option.
param: string $option    Value for the option key.
param: int    $new_value Value for the saved option.
return: int The pagination preferences.
since: 2.0.0

remove_signups_from_user_query( $query = null )   X-Ref
Make sure no signups will show in users list.

This is needed to handle signups that may have not been activated
before the 2.0.0 upgrade.

param: WP_User_Query|null $query The users query.
return: WP_User_Query|null The users query without the signups.
since: 2.0.0

signup_filter_view( $views = array()   X-Ref
Filter the WP Users List Table views to include 'bp-signups'.

param: array $views WP List Table views.
return: array The views with the signup view added.
since: 2.0.0

get_list_table_class( $class = '', $required = '' )   X-Ref
Load the Signup WP Users List table.

param: string $class    The name of the class to use.
param: string $required The parent class.
return: WP_List_Table|null The List table.
since: 2.0.0

signups_admin_load()   X-Ref
Set up the signups admin page.

Loaded before the page is rendered, this function does all initial
setup, including: processing form requests, registering contextual
help, and setting up screen options.

since: 2.0.0

signups_display_errors()   X-Ref
Display any activation errors.

since: 2.0.0

get_signup_notice()   X-Ref
Get admin notice when viewing the sign-up page.

return: array
since: 2.1.0

signups_admin()   X-Ref
Signups admin page router.

Depending on the context, display
- the list of signups,
- or the delete confirmation screen,
- or the activate confirmation screen,
- or the "resend" email confirmation screen.

Also prepare the admin notices.

since: 2.0.0

signups_admin_index()   X-Ref
This is the list of the Pending accounts (signups).

since: 2.0.0

signups_admin_manage( $action = '' )   X-Ref
This is the confirmation screen for actions.

param: string $action Delete, activate, or resend activation link.
return: null|false
since: 2.0.0

users_table_output_type_change_select( $which = 'top' )   X-Ref
Display a dropdown to bulk change the member type of selected user(s).

param: string $which Where this dropdown is displayed - top or bottom.
since: 2.7.0

users_table_process_bulk_type_change()   X-Ref
Process bulk member type change submission from the WP admin users list table.

since: 2.7.0

users_type_change_notice()   X-Ref
Display an admin notice upon member type bulk update.

since: 2.7.0

users_table_add_type_column( $columns = array()   X-Ref
Add member type column to the WordPress admin users list table.

param: array $columns Users table columns.
return: array $columns
since: 2.7.0

users_table_populate_type_cell( $retval = '', $column_name = '', $user_id = 0 )   X-Ref
Return member's type for display in the WP admin users list table.

param: string $retval
param: string $column_name
param: int $user_id
return: string Member type as a link to filter all users.
since: 2.7.0

users_table_filter_by_type( $query )   X-Ref
Filter WP Admin users list table to include users of the specified type.

param: WP_Query $query
since: 2.7.0

format_xprofile_field_for_display( $value )   X-Ref
Formats a signup's xprofile field data for display.

Operates recursively on arrays, which are then imploded with commas.

param: string|array $value Field value.
return: string
since: 2.8.0

members_invitations_admin_load()   X-Ref
Set up the signups admin page.

Loaded before the page is rendered, this function does all initial
setup, including: processing form requests, registering contextual
help, and setting up screen options.

since: 8.0.0

get_members_invitations_notice()   X-Ref
Get admin notice when viewing the invitations management page.

return: array
since: 8.0.0

invitations_admin()   X-Ref
Member invitations admin page router.

Depending on the context, display
- the list of invitations,
- or the delete confirmation screen,
- or the "resend" email confirmation screen.

Also prepare the admin notices.

since: 8.0.0

invitations_admin_index()   X-Ref
This is the list of invitations.

since: 8.0.0

invitations_admin_manage( $action = '' )   X-Ref
This is the confirmation screen for actions.

param: string $action Delete or resend invitation.
return: null|false
since: 8.0.0



Generated: Thu Dec 26 01:01:04 2024 Cross-referenced by PHPXref 0.7.1