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.

_is_user_taxonomy_page( string $submenu_file )

Check if editing a “user” taxonomy


Parameters

$submenu_file

(Required)


Return

(bool) true if editing a user taxonomy.


Source

File: wp-admin/menu-header.php

function _is_user_taxonomy_page( $submenu_file ) {
	if ( null === $submenu_file ) {
		return false;
	}
	$match = preg_match( '~edit-tags\.php\?taxonomy=([A-Za-z0-9\-_]+)~', $submenu_file, $matches );
	if ( false === $match || ! isset( $matches[1] ) ) {
		return false;
	}
	$taxonomy = get_taxonomy( $matches[1] );
	if ( false === $taxonomy ) {
		return false;
	}
	return in_array( 'user', $taxonomy->object_type );
}


Changelog

Changelog
Version Description
CP-2.1.0 Introduced. CP-2.1.0