Support » Plugin: All in One SEO – Best WordPress SEO Plugin – Easily Improve SEO Rankings & Increase Traffic » Disable removal of Twitter meta from official Twitter plugin

  • Resolved Ultra beginner

    (@ultra-beginner)


    I added it to the functions.php of the theme.
    but this filter is not work.
    why?

    
    add_filter('aioseop_disable_twitter_plugin_card', '__return_false');
    

    WordPress 4.7.3
    All in One SEO Pack 2.3.12.1
    PHP 7.0

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wpsmort

    (@wpsmort)

    I have tested this filter and it definitely works. Here’s a before and after from my site:

    Before applying the filter:
    <meta name=”twitter:partner” content=”tfwp”>

    After applying the filter:
    <meta name=”twitter:partner” content=”tfwp”>
    <meta name=”twitter:card” content=”summary”><meta name=”twitter:title” content=”AIOSEOP Master Test Site”><meta name=”twitter:description” content=”This is just another AIOSEOP test site”>

    Thread Starter Ultra beginner

    (@ultra-beginner)

    I do not use twitter.
    So I want to erase the meta tag of twitter because it is unnecessary.

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    The filter hook does work, you may be using it wrong.
    FYI, the Twitter meta isn’t just for sharing to your Twitter account, it’s also so other people can share to theirs and generate traffic for you.

    Thread Starter Ultra beginner

    (@ultra-beginner)

    I see!
    I learned a lot.
    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable removal of Twitter meta from official Twitter plugin’ is closed to new replies.