Viewing 1 replies (of 1 total)
  • Thread Starter benetj

    (@benetj)

    I got it!
    In functions.php intercepts the ‘language_attributes’ filter and make a substring

    function add_custom_opengraph_namespace( $input ) {
    	return substr($input, 0,-1) . ' customns: https://ogp.me/ns/fb/customns# " ';
    }
    add_filter( 'language_attributes','add_custom_opengraph_namespace');

    That’s it!

Viewing 1 replies (of 1 total)
  • The topic ‘Add my own OpenGraph namespace’ is closed to new replies.