filtrod 3.3.0
wp_unique_post_slug
Opis — z kodu źródłowego
Filters the unique post slug.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$slug | string | The post slug. |
$post_id | int | Post ID. |
$post_status | string | The post status. |
$post_type | string | Post type. |
$post_parent | int | Post parent ID |
$original_slug | string | The original post slug. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_unique_post_slug', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_unique_post_slug', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}Popularne w tej kategorii