• Resolved ekaman

    (@ekaman)


    Dear Marcin,

    I’m trying to add some filters like

    add_filter( 'og_og_locale', '__return_false');
    add_filter( 'og_og_type', '__return_false');
    

    or
    change title for the home page

    add_filter('og_og_title_meta', 'my_og_og_title_meta');
    function my_og_og_title_meta($title)
    {
        if ( is_home() ) {
            return '<meta property="og:title" content="WordPress Title" />';
        }
        return $title;
    }

    but it constantly returns

    <meta property="og:title" content="Home" />
    <meta property="og:type" content="article" />
    <meta property="og:locale" content="ru_RU" />
Viewing 1 replies (of 1 total)
  • Plugin Author Marcin Pietrzak

    (@iworks)

    Dear @ekaman

    To remove try to:

    
    add_filter( 'og_og_locale_meta', '__return_empty_string');
    

    I checked og_og_title_meta and it works on my test site – I can not reproduce ??

    Marcin

Viewing 1 replies (of 1 total)
  • The topic ‘It seems that it doesn’t work for me (some conflict, perhaps)’ is closed to new replies.