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



has_post_parent › WordPress Function

Da5.7.0
Deprecaton/a
has_post_parent ( $post = null )
Parametri:
  • (int|WP_Post|null) $post Optional. Post ID or WP_Post object. Default is global $post.
    Richiesto: No
    Default: null
Ritorna:
  • (bool) Whether the post has a parent post.
Definito a:
Codex:

Returns whether the given post has a parent post.



Sorgenti

function has_post_parent( $post = null ) {
	return (bool) get_post_parent( $post );
}