WP HOOKS
filtrod 2.7.0

wp_comment_reply

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

Opis — z kodu źródłowego

Filters the in-line comment reply-to form output in the Comments list table.

Returning a non-empty value here will short-circuit display of the in-line comment-reply form in the Comments list table, echoing the returned value instead.

Parametry

ParametrTypOpis
$contentstringThe reply-to form content.
$argsarrayAn array of default args.

Wywołanie

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

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

Popularne w tej kategorii