[ Index ]

PHP Cross Reference of BuddyPress




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

BuddyPress Members Admin

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

Defines 1 class

BP_Members_Admin:: (43 methods):

Class: BP_Members_Admin  - X-Ref

Load Members admin area.

register_members_admin()   X-Ref
Setup BP Members Admin.

since: 2.0.0
return: BP_Members_Admin

__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.

since: 2.1.0
return: int

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.
since: 2.1.0
return: bool

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

since: 2.1.0
return: array

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

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.
since: 2.0.0
return: string|null

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

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_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.
since: 2.0.0
return: null|string|array Merged actions.

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.
since: 2.1.0
return: string

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.
since: 2.0.0
return: int The pagination preferences.

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.
since: 2.0.0
return: WP_User_Query|null The users query without the signups.

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.
since: 2.0.0
return: array The views with the signup view added.

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.
since: 2.0.0
return: WP_List_Table|null The List table.

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.

since: 2.1.0
return: array

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.
since: 2.0.0
return: null|false

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.
since: 2.7.0
return: array $columns

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
since: 2.7.0
return: string Member type as a link to filter all users.

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.
since: 2.8.0
return: string

Generated: Sun Nov 17 01:01:36 2019 Cross-referenced by PHPXref 0.7.1