Need to Remove Meta Data

#2091
  • Resolved Gopi
    Rank Math free

    article:published_time
    article:modified_time

    how to remove this Opengraph meta data from displaying in html.

    Is there any filter available to remove that?

    • This topic was modified 5 years, 7 months ago by Gopi.
Viewing 15 replies - 1 through 15 (of 19 total)
  • ​​Hello,

    Thank you for contacting Rank Math today.

    You can make use of the below filter to target some specific tags on your pages:

    /**
     * Allow developers to change the content of specific social meta tags.
     *
     * The dynamic part of the hook name. $network, is the network slug
     * and $og_property, is the property which we are outputting.
     *
     * @param string $content The content of the property.
     */
    add_filter( "rank_math/opengraph/{$network}/$og_property", function( $content ) {
    	return $content;
    });

    I hope this info helps. Thank you.

    ​​​​​​

    Gopi
    Rank Math free

    what is the write tag for this article:published_time

    Can you give me an example?

    do we need to return false?

    I tried this is not working
    add_filter( ‘rank_math/opengraph/article_published_time’, ‘__return_false’ );

    add_filter( “rank_math/opengraph/{$network}/article_published_time”, function( $content ) {
    ‘__return_false’
    });

    Hello,

    Thank you for contacting Rank Math today.

    Would you mind editing the sensitive data section and adding some temporary admin access to your site so that I can review and advise further?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Gopi
    Rank Math free

    <meta property=”article:published_time” content=”2019-01-06T08:29:49+00:00″>
    <meta property=”article:modified_time” content=”2019-03-10T18:14:20+00:00″>

    I want to remove this tag.

    so please help em to add a filter like this below
    add_action(‘wpseo_dc_’.’DC.date.issued’, ‘__return_false’); // Premium only
    add_filter( ‘wpseo_og_article_published_time’, ‘__return_false’ );
    add_filter( ‘wpseo_og_article_modified_time’, ‘__return_false’ );
    add_filter( ‘wpseo_og_og_updated_time’, ‘__return_false’ );

    Gopi
    Rank Math free

    <meta property=”article:published_time” content=”2019-01-06T08:29:49+00:00″>
    <meta property=”article:modified_time” content=”2019-03-10T18:14:20+00:00″>

    I want to remove this tag.

    so please help em to add a filter like this below[this one i used for Yoast]
    add_action(‘wpseo_dc_’.’DC.date.issued’, ‘__return_false’); // Premium only
    add_filter( ‘wpseo_og_article_published_time’, ‘__return_false’ );
    add_filter( ‘wpseo_og_article_modified_time’, ‘__return_false’ );
    add_filter( ‘wpseo_og_og_updated_time’, ‘__return_false’ );

    Hello,

    Thank you for the response.

    You can add this code to remove these tags:

    /**
     * Allow developers to change the content of specific social meta tags.
     *
     * The dynamic part of the hook name. $network, is the network slug
     * and $og_property, is the property which we are outputting.
     *
     * @param string $content The content of the property.
     */
    add_filter( "rank_math/opengraph/facebook/article:published_time", function( $content ) {
    	return false;
    });
    add_filter( "rank_math/opengraph/facebook/article:modified_time", function( $content ) {
    	return false;
    });

    I hope this info helps. Thank you.

    ​​​​​​

    Gopi
    Rank Math free

    after adding this piece of code in my functions.php also the tag and the values are displaying i attached the URL.

    add_filter( “rank_math/opengraph/facebook/article:published_time”, function( $content ) {
    return false;
    });
    add_filter( “rank_math/opengraph/facebook/article:modified_time”, function( $content ) {
    return false;
    });

    Hello,

    Thank you for the response.

    I have just tested this variation and it works on my end:

    add_filter( "rank_math/opengraph/facebook/article_published_time","__return_false");
    add_filter( "rank_math/opengraph/facebook/og_description","__return_false");

    Please share some temporary admin access on the sensitive data section if you are not able to get this to work so that I can do this for you.

    ​​​​​​

    Gopi
    Rank Math free

    i added the details can you check it

    Gopi
    Rank Math free

    what do you need? if you could be more specific then it will helpful..
    Thanks for your time.

    • This reply was modified 5 years, 7 months ago by Gopi.

    Hi there,

    Thanks for the response.

    I am sorry but the access credentials do not appear to work 🙁

    Please check them from your end and get back to me.

    Gopi
    Rank Math free

    please check again

    HI Gopi,

    Thanks for the follow up.

    The code works, I have added a screenshot on the sensitive data section of how the page source looks on my end.

    Let me know if you can replicate the same results.

    Gopi
    Rank Math free

    no still am able to see the meta tags…

    <meta property=”article:modified_time” content=”2019-03-29T05:30:21+00:00″>
    <meta property=”og:updated_time” content=”2019-03-29T05:30:21+00:00″>

    I attached the screenshot for your reference..
    http://prntscr.com/n9cwu6

    Thanks

    Gopi
    Rank Math free

    only in this post am not able to see

    https://www.campingask.com/tent/tent-camping-tips/

    remaining post am able to see the timings

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 19 total)

The ticket ‘Need to Remove Meta Data’ is closed to new replies.