[ 'Content-Type' => 'application/json', ], ] ); if (\is_wp_error($data)) { return []; } $data = json_decode(\wp_remote_retrieve_body($data), true); if (empty($data)) { return []; } $schema = isset($data['yoast_head_json']) && isset($data['yoast_head_json']['schema']) ? $data['yoast_head_json']['schema'] : []; return $schema; } }