WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
feature request: add a hook to function url() in class-opengraph.php (1 post)

  1. mvillani
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic