WP HOOKS
filtrod 4.1.0

comment_reply_link_args

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

Opis — z kodu źródłowego

Filters the comment reply link arguments.

Parametry

ParametrTypOpis
$argsarrayComment reply link arguments. See get_comment_reply_link() for more information on accepted arguments.
$comment\WP_CommentThe object of the comment being replied to.
$post\WP_PostThe WP_Post object.

Wywołanie

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

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

Popularne w tej kategorii