filtrod 3.1.0
wp_get_current_commenter
Opis — z kodu źródłowego
Filters the current commenter's name, email, and URL.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_author_data | array | { An array of current commenter variables. @type string $comment_author The name of the current commenter, or an empty string. @type string $comment_author_email The email address of the current commenter, or an empty string. @type string $comment_author_url The URL address of the current commenter, or an empty string. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_get_current_commenter', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_get_current_commenter', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii