/**
* Collect data to output in JSON-LD.
*
* @param array $unsigned An array of data to output in json-ld.
* @param JsonLD $unsigned JsonLD instance.
*/
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
global $post;
if( $post->ID == 999){
unset($data['WebPage']);
return $data;
}
}, 99, 2);