WP HOOKS
filtrod 2.9.0

get_delete_post_link

Args 3Plik wp-includes/link-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the post delete link.

Parametry

ParametrTypOpis
$linkstringThe delete link.
$post_idintPost ID.
$force_deleteboolWhether to bypass the Trash and force deletion. Default false.

Wywołanie

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

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

Popularne w tej kategorii