• Resolved Miguel

    (@teledirigido)


    I was just wondering how to delete a tag as I don’t want to display the author item. So I found a filter to do this:

    function customize_og_author_metatag( $metatags ) {
        unset($metatags[1]);
        return $metatags;
    }
    add_filter( 'amt_schemaorg_metadata_head', 'customize_og_author_metatag', 10, 1 );

    It’s quite tricky that the element number 1 is author as is not well explained. I expected something like $metatags[‘author’] or something like that.

    This worked for me so I hope this also help to some one else.

    Good plugin by the way,

    Thank you ??

    https://www.ads-software.com/plugins/add-meta-tags/

  • The topic ‘Remove author meta tag’ is closed to new replies.