filtrod 2.7.0
wp_comment_reply
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
| Parametr | Typ | Opis |
|---|---|---|
$content | string | The reply-to form content. |
$args | array | An 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
}
// 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