filtrod 3.1.0
wp_insert_post_parent
Opis — z kodu źródłowego
Filters the post parent -- used to check for and prevent hierarchy loops.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_parent | int | Post parent ID. |
$post_id | int | Post ID. |
$new_postarr | array | Array of parsed post data. |
$postarr | array | Array of sanitized, but otherwise unmodified post data. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_insert_post_parent', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_insert_post_parent', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii