wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_insert_post_parent › Filtr WordPress Hooks

Od3.1.0
Przestarzałyn/a
› apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr )
Parametry: (4)
  • () post_parent Post parent ID.
    Wymagane: Tak
  • () post_id Post ID.
    Wymagane: Tak
  • () new_postarr Array of parsed post data.
    Wymagane: Tak
  • () postarr Array of sanitized, but otherwise unmodified post data.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the post parent -- used to check for and prevent hierarchy loops.





Źródło

$post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr );