wp_get_post_parent_id


wp_get_post_parent_id ( $post )

Parameters:
  • (int|WP_Post) $post Post ID or post object. Defaults to global $post.
Returns:
  • (int|false) Post parent ID, otherwise false.
Defined at:

Description

Return the post's parent post ID.

Related Functions

wp_get_post_cats, wp_get_post_revision, wp_get_post_revisions, wp_get_term_taxonomy_parent_id, wp_get_post_tags

Top Google Results

User discussions

wpseek mobile