Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Users_Admin::setup_actions()
Setup the admin hooks, actions and filters
Description Description
Source Source
File: includes/admin/users.php
function setup_actions() { // Bail if in network admin if ( is_network_admin() ) { return; } // User profile edit/display actions add_action( 'edit_user_profile', array( $this, 'secondary_role_display' ) ); // WordPress user screen // Remvove the bottom list table "change forum role" dropdown from WordPress < 4.6. // See https://bbpress.trac.wordpress.org/ticket/2906. if ( bbp_get_major_wp_version() < 4.6 ) { add_action( 'restrict_manage_users', array( __CLASS__, 'user_role_bulk_dropdown' ) ); } else { add_action( 'restrict_manage_users', array( $this, 'user_role_bulk_dropdown' ), 10, 1 ); } add_filter( 'manage_users_columns', array( $this, 'user_role_column' ), 10, 1 ); add_filter( 'manage_users_custom_column', array( $this, 'user_role_row' ), 10, 3 ); // Only list bbPress roles under Forum Role, remove from WordPress' > 4.4 Site Role list. if ( bbp_get_major_wp_version() >= 4.4 ) { add_filter( 'get_role_list', array( $this, 'user_role_list_filter' ), 10, 2 ); } // User List Table add_action( 'load-users.php', array( $this, 'user_role_bulk_change' ), 10, 1 ); add_action( 'user_row_actions', array( $this, 'user_row_actions' ), 10, 2 ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |