filtrod 2.2.0
url_to_postid
Opis — z kodu źródłowego
Filters the URL to derive the post ID from.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$url | string | The URL to derive the post ID from. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'url_to_postid', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'url_to_postid', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii