• Resolved nicocaldo

    (@nicocaldo)


    I understand that I can change locale with the

    /**
     * Changes the locale output.
     * 
     * @param string $locale The current locale.
     * 
     * @return string The locale.
     */
    function yst_wpseo_change_og_locale( $locale ) {
        return 'nl_NL';
    }
    
    add_filter( 'wpseo_locale', 'yst_wpseo_change_og_locale' );

    Is there a way to change locale just on a specific page like with if ( $post_id

Viewing 1 replies (of 1 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @nicocaldo,

    Thanks for using the Yoast SEO plugin. We don’t have a filter to change the og:locale?tag based on post ID, but you or your developer are free to make customizations as you see fit.

Viewing 1 replies (of 1 total)
  • The topic ‘Change locale for specific page’ is closed to new replies.