add_action('init', function() { add_filter('wpseo_schema_graph', function($graph, $context) { foreach ($graph as $key => $piece) { // Fix Person (Author) if (isset($piece['@type']) && $piece['@type'] === 'Person') { $graph[$key]['name'] = 'Shreya Sharma'; $graph[$key]['url'] = 'https://4iz4.com/about-us'; } // Fix Organization (Publisher) if (isset($piece['@type']) && $piece['@type'] === 'Organization') { $graph[$key]['name'] = '4iz4'; $graph[$key]['url'] = 'https://4iz4.com'; } // Fix Article author if (isset($piece['@type']) && $piece['@type'] === 'Article') { $graph[$key]['author'] = [ '@type' => 'Person', 'name' => 'Shreya Sharma', 'url' => 'https://4iz4.com/about-us' ]; } } return $graph; }, 20, 2); });