$parent_page_id = wp_get_post_parent_id( 'child-page-id' );

Advertisements