wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_insert_post_parent › WordPress Filter Hooks

Da3.1.0
Deprecaton/a
› apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr )
Parametri: (4)
  • () post_parent Post parent ID.
    Richiesto: Sì
  • () post_id Post ID.
    Richiesto: Sì
  • () new_postarr Array of parsed post data.
    Richiesto: Sì
  • () postarr Array of sanitized, but otherwise unmodified post data.
    Richiesto: Sì
Definito a:
Codex:

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





Sorgenti

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