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()
- Get meta_id along with meta_key and meta_value
- Show content if parent page has children
- Detection of theme being used
- How to order posts by modified date without using ‘query_posts’?
- Get widget settings function?
- Mysterious HTTP 404 header in my own scripts
- Archive dropdown styling not applied
- Putting PHP variables into javascript [duplicate]
- Insert a button on a page with random number generation
- Change the site tagline (or similar) based on current page
- hover image appears below placeholder instead of overlayed
- How to find error in my code when the error message is pointing to WP core file?
- Pass variable from one function to another
- Issues getting PHP to display in category pages
- WordPress Quick Question . How to Get Parent Link in Submenu in My Code
- How to edit widget code to add unique class name to each div?
- Exclude category
- WordPress wp_add_inline_style unable to give hex colors?
- Parse error: syntax error, unexpected end of file
- How would I use this filter to change the output of the date format to “Twitter time”?
- WP Business Directory Manager Plugin Admin Listings?
- How to append to an array and return the results in a filter?
- Generating rel=”prev” and rel=”next” using filters
- Why i can’t get custom fields value or post ID via Ajax?
- Fatal errors to undefined function in theme 404.php file [closed]
- the_meta – no get_the_meta query?
- Get value from db for custom contact form
- how to insert content into my taxonomy
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- add_action in namespace not working
- Using a new WP_Query inside the loop
- How to Send Pingbacks for all Posts in WordPress?
- Has a PHP update given me a 404?
- Replace background image with post thumbnail in shortcode
- Using A PHP App in WordPress
- HTML comment cause issue in functions.php script root
- Rewrite rule not working, but only when parameter is text
- How to prevent adding data to a localhost database after refresh?
- wp_ajax_ 400 Bad Request
- Show Yoast SEO meta tags in Custom WordPress Templates (Theme)
- How to display sticky post always at the top (before regular post) in wordpress?
- PHP warning with code for nav menu walker [duplicate]
- Get the image title and alt from custom query
- Showing wordpress latest post thumbnails in slider with auto increment
- media_handle_upload fails with gravity form submitted image
- how to display woocomerce description of each category in wordpress? [closed]
- My function echos only “array”
- Notify admin (by email) if post added with specific tag
- uploading a new theme to live server
- See output of a sql query while plugin installation in wordpress
- Shortcode Display From WordPress Dashboard Page Without Using post_id
- Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset -1
- Null value given when confirming email’s
- Understanding responsive imagery
- How to get meta box labels?
- get_query_vars always retruns empty value
- How to group by column a and sum column b and c in a php array
- Convert custom field date format to “WordPress default”