show_network_site_users_add_existing_form filter-hookWP 3.1.0

Filters whether to show the Add Existing User form on the Multisite Users screen.

Usage

add_filter( 'show_network_site_users_add_existing_form', 'wp_kama_show_network_site_users_add_existing_form_filter' );

/**
 * Function for `show_network_site_users_add_existing_form` filter-hook.
 * 
 * @param bool $bool Whether to show the Add Existing User form.
 *
 * @return bool
 */
function wp_kama_show_network_site_users_add_existing_form_filter( $bool ){

	// filter...
	return $bool;
}
$bool(true|false)
Whether to show the Add Existing User form.
Default: true

Changelog

Since 3.1.0 Introduced.

Where the hook is called

In file: /wp-admin/network/site-users.php
show_network_site_users_add_existing_form
wp-admin/network/site-users.php 212
if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) {
wp-admin/network/site-users.php 297
if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) :

Where the hook is used in WordPress

Usage not found.