WP HOOKS
filtrod MU (3.0.0)

get_blogs_of_user

Args 3Plik wp-includes/user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the list of sites a user belongs to.

Parametry

ParametrTypOpis
$sitesobject[]An array of site objects belonging to the user.
$user_idintUser ID.
$allboolWhether the returned sites array should contain all sites, including those flagged for deletion, archived, or marked as spam.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_blogs_of_user', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii