WP HOOKS
filtrod 3.4.0

post_types_to_delete_with_user

Args 2Plik wp-admin/includes/user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the list of post types to delete with a user.

Parametry

ParametrTypOpis
$post_types_to_deletestring[]Array of post types to delete.
$idintUser ID.

Wywołanie

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

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

Popularne w tej kategorii