Take a look at WordPress SEO API Docs it appears you can modify the meta description tag will somthing like:
add_filter('wpseo_metadesc', function($description){
if ($wtv_language == 'wtv') {
$description = "my other language meta description here";
}
return $description;
});
Note that $wtv_language == 'wtv'
would need to be replaced with whatever function/variable you’re using to detect your language – and "my other language...
would need to be replaced with a dynamic translated value, so each page gets a proper translated description, however you plan to do that.
Related Posts:
- Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]
- WordPress yoast seo plugin – parse snippet var in meta description
- Genesis / custom template page / setting the page title and meta desc
- Workaround for og:image unsupported webp image type, Yoast SEO?
- seo meta description issue in google search
- Custom Yoast Breadcrumbs URL
- Current post’s author name in the author meta tag
- Set Primary category using the Yoast SEO plugin
- A Specific Blog post to be assigned as the landing page of my wordpress blog
- A solution to set metatags with my page generating plugin?
- WordPress plugin for nicer looking slugs? Have multiple pages named the same but they get different slugs
- Add meta noindex to post if it has a specific taxonomy
- How to remove role=”navigation” from all nav elements?
- Auto-Select Parent Category as Primary
- Change title only in dynamic page
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Category title output before opening title tag
- Display Yoast meta-description `wpseo_desc` within loop of categories and fail silently if no data is set [closed]
- Seo Friendly Filter URLs
- How to add no follow to specific links?
- .html end of URl affected to SEO?
- Can’t change website Title on wordpress
- Nginx WordPress and another Web app URL structure
- Get All In One SEO Pack to use custom field instead of Content
- Create a slug for a page in WordPress
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- Obfuscate links (for SEO purpose) [closed]
- Custom URL for multiple categories hierarchy
- 404 on old link after changing post url
- Tag title not being returned in page title of tag archives
- Retrieve alt text by referencing the img src
- Custom function that re-writes page title breaks when the Yoast plugin is activated
- Does anyone know why my SEO and title become one?
- Yoast Breadcrumbs Inject Multiple Levels
- Using $this with an anonymous function in filters
- How to display custom seo title before the loop?
- Add missing alt tag to featured images for “storefront” theme
- Redirect homepage /page/1/ to /blog/page/1/
- Magento and WordPress URL integration [closed]
- Wrapping the_content() in Schema articleBody tag? [closed]
- Custom HTML/CSS Theme into WordPress – SEO considerations
- How to modify default tags in wp_head()
- Remove datePublished and dateModified from Yoast Schema output on WordPress website
- How to do SEO friendly filters urls?
- How to add query string at the end of sitemap Yoast SEO
- Convert hex color to RGB values in PHP
- Calculate business days
- How do I make a redirect in PHP?
- How to add elements to an empty array in PHP?
- What do ++ and *+ mean?
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Undefined function mysql_connect()
- MySQL column count doesn’t match value count at row 1 [closed]
- Matching a space in regex
- Undefined function mysql_connect()
- How can I send an email using PHP?
- Fatal error: Call to undefined function mysql_connect()
- count() parameter must be an array or an object that implements countable in laravel
- Go Back to Previous Page
- How do I check if a string contains a specific word?
- How do I replace part of a string in PHP? [duplicate]
- How to declare a global variable in php?
- How to fix “Headers already sent” error in PHP
- Fatal error: Call to undefined function mysql_connect()
- How to fix ‘Notice: Undefined index:’ in PHP form action
- Loop through an array php
- Deprecated: mysql_connect()
- Where does PHP store the error log? (PHP 5, Apache, FastCGI, and cPanel)
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- Illegal string offset Warning PHP
- What is PHPSESSID?
- MySQL “Or” Condition
- What is the significance of the number, 32767?
- PHP – how to create a newline character?
- How to add a line break within echo in PHP?
- How to read a large file line by line?
- Best way to do multiple constructors in PHP
- how to set featured image in non-wordpress
- How to get URL of current page displayed?
- Undefined variable in functions.php file [closed]
- What are PHP extensions and libraries WP needs and/or uses?
- What is the correct way to use WordPress functions outside WordPress files?
- Allow HTML in excerpt
- How to get WordPress Time Zone setting?
- how to get page id of a page using page slug
- Check if current page is the Blog Page
- How to set and use global variables? Or why not to use them at all
- Sending the reset password link programatically
- How to add product in woocommerce with php code [closed]
- Show all terms of a custom taxonomy?
- How exactly do automatic updates work?
- what is correct way to hook when update post
- How to update custom fields using the wp_insert_post() function?
- How to create custom 401, 403 and 500 error pages?
- Why have on every line
- Most efficient way to add javascript file to specific post and/or pages?
- Running WP Cron on multisite the right way
- Getting only direct child pages in WordPress with get_pages
- the_date() not working
- How do I use WP_query with multiple post IDs?