• Resolved blissyung

    (@blissyung)


    Would like to remove some specific meta tags from header, I don’t want to disable facebook OG entirely. I was able to do this with yoast adding remove filter to theme functions, hope I can do same with AIOSEO.

    E.g.
    <meta property=”article:published_time” content=”” />
    <meta property=”article:modified_time” content=”” />

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Steve M

    (@wpsmort)

    Yes, you can use this filter code to remove them:

    add_filter('aiosp_opengraph_meta','aioseo_remove_published_time', 10, 5);
    
    function aioseo_remove_published_time ( $value, $type, $field, $v, $extra_params ){    
    	if( $field == 'published_time' ) $value = '';
    	return $value;
    }
    add_filter('aiosp_opengraph_meta','aioseo_remove_modified_time', 10, 5);
    
    function aioseo_remove_modified_time ( $value, $type, $field, $v, $extra_params ){    
    	if( $field == 'modified_time' ) $value = '';
    	return $value;
    }
    Thread Starter blissyung

    (@blissyung)

    Wow thanks, I scrapped the entire internet for days couldn’t find anyone wanting to do this lol. hope it helps someone else.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove date meta from post pages’ is closed to new replies.