filtrod 2.5.0
pings_open
Opis — z kodu źródłowego
Filters whether the current post is open for pings.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$pings_open | bool | Whether the current post is open for pings. |
$post_id | int | The post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pings_open', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pings_open', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii