WP HOOKS
filtrod 4.4.0

respond_link

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

Opis — z kodu źródłowego

Filters the respond link when a post has no comments.

Parametry

ParametrTypOpis
$respond_linkstringThe default response link.
$post_idintThe post ID.

Wywołanie

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

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

Popularne w tej kategorii