wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_insert_post_parent › Les Filtres WordPress

Depuis3.1.0
Dépréciéen/a
› apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr )
Paramètres: (4)
  • () post_parent Post parent ID.
    Requis: Oui
  • () post_id Post ID.
    Requis: Oui
  • () new_postarr Array of parsed post data.
    Requis: Oui
  • () postarr Array of sanitized, but otherwise unmodified post data.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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