Quantcast
Channel: WordPress.org Forums » [Yoast SEO] Support
Viewing all articles
Browse latest Browse all 41891

mvillani on "[Plugin: WordPress SEO by Yoast] feature request: add a hook to function url() in class-opengraph.php"

$
0
0

Hi,
for particular SEO reasons I need to write my own canonical urls.
This imply that I need to put in my code this:

function wpseo_canonical_exclude( $canonical ) {
    global $post;
    $canonical = false;
    return $canonical;
}
add_filter( 'wpseo_canonical', 'wpseo_canonical_exclude' );

This code has a side effect: the og:url field is not populated correctly:

<meta property='og:url' content=''/>

To avoid this it would be usefull to have an hook in the url() function inside class-opengraph();.

Is it possibile for you to add it in a future release?

Regards,
Marcello

http://wordpress.org/extend/plugins/wordpress-seo/


Viewing all articles
Browse latest Browse all 41891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>