WordPress Yoast seo remove meta property article:published_time

<meta property="article:published_time" content="2025-03-04T12:30:10+00:00" />

path: wp-content/plugins/wordpress-seo/src/presenters/open-graph

filename: article-published-time-presenter.php

remove all

or copy and paste code for functions.php

//
function remove_specific_meta_tag($html) {
    return preg_replace('/\s*<meta\s+property="article:published_time"[^>]+>\s*/i', '
    ', $html);
}

function start_html_buffer() {
    ob_start('remove_specific_meta_tag');
}

function end_html_buffer() {
    if (ob_get_level() > 0) {
        ob_end_flush();
    }
}

add_action('template_redirect', 'start_html_buffer', 9999);
add_action('wp_footer', 'end_html_buffer', 100);