Hi David
Look forward to that page relationships added to Elements.
Thank you for pointing out that thread.
Turns out this post was the one I needed as it includes and array of Parent Pages:
https://generatepress.com/forums/topic/conditionally-display-hook-on-sub-page-of-parent/#post-1092863
add_filter( 'generate_hook_element_display', function( $display, $element_id ) {
global $post;
if ( $element_id===3106 &&
( is_page(array(1291,1326)) ||
is_page() && $post->post_parent===1291 ||
is_page() && $post->post_parent===1326
)
) {
$display = true;
}
return $display;
}, 10, 2 );
What does the }, 10, 2 );
part represent ?