BP_Members_List_Table::no_items()
The text shown when no items are found.
Description
Nice job, clean sheet!
Source
File: bp-members/classes/class-bp-members-list-table.php
public function no_items() { if ( bp_get_signup_allowed() ) { esc_html_e( 'No pending accounts found.', 'buddyboss' ); } else { $link = false; // Specific case when BuddyPress is not network activated. if ( is_multisite() && current_user_can( 'manage_network_users') ) { $link = sprintf( '<a href="%1$s">%2$s</a>', esc_url( network_admin_url( 'settings.php' ) ), esc_html__( 'Edit settings', 'buddyboss' ) ); } elseif ( current_user_can( 'manage_options' ) ) { $link = sprintf( '<a href="%1$s">%2$s</a>', esc_url( bp_get_admin_url( 'options-general.php' ) ), esc_html__( 'Edit settings', 'buddyboss' ) ); } printf( __( 'Registration is disabled. %s', 'buddyboss' ), $link ); } }
Changelog
Version | Description |
---|---|
BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.