filtrod 1.5.0
get_the_guid
Opis — z kodu źródłowego
Filters the Global Unique Identifier (guid) of the post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_guid | string | Global Unique Identifier (guid) of the post. |
$post_id | int | The post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_the_guid', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_the_guid', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii