I found wp cli based solution. These below commands are useful for update translate files for core, themes and plugins:
wp language core update
wp language theme update --all
wp language plugin update --all
To schedule these commands, insert this line in crontab:
30 0 * * * wp language core update ; wp language theme update --all ; wp language plugin update --all
It will update all translate files once a day.
Shorter version of cron job:
30 0 * * * for i in "core update" "theme update --all" "plugin update --all"; do sudo wp language $i; done
Related Posts:
- How to run a function every 5 minutes?
- Is it ok to use a function to output the text domain name in a wordpress theme
- Do WordPress’ cron’s clean up expired transients?
- Gettext details
- How to update WordPress and plugins at specific day and time in PHP?
- Automated mark posts as featured every day
- WP_Cron doesn’t do the job: Multisite stats
- translate the_title() with .po & .mo
- Translation of theme using child theme
- WordPress function, Run using Crontab
- Display a random tag but using cron to control frequency of change
- Bulk updating a group of WordPress Pages every 10 minutes
- Writing a function for WP Cron to run a SQL command daily
- Deleting guests profile users after 1.5 hours
- Scheduled post delete – can’t pass the cron arguments
- Change ‘Categories’ to ‘Topics’
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- Working function() doesn’t execute when triggered by WP CRON
- Update post meta with wp cron
- HELP: Code To Check Status And Write Debug Entry
- Get the ID of the page a menu item links to?
- Add container to nav_menu sub menu
- One Child Functions.php for Multiple Child Themes
- Disabling pingback and trackback notifications
- register_post_type for Pages?
- Paged Single Post doesn’t redirect to the main url after Removing Pagination
- How to get comments with mixed status using get_comments?
- How can I rename the WordPress AJAX URL? [duplicate]
- How to add a rel attribute to images that contains their categories?
- Is it possible to be more page/post specific with admin_enqueue_script?
- What is the most efficient method for loading widgets in functions.php
- Enqueue script o style only if a template part is loaded
- radio button is checked but display not check
- Can I pass two roles to the function get_users?
- Add external js file to footer with id
- wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go
- How can I enable uploading excel files?
- Change the HTML of the comment form that is generating somewhere from the core WordPress
- How to customly read JWPlayer’s “Playlist” items by using its “playlistid”?
- Twentyten Child Theme: header images display messed up in admin panel
- Removing wp_login_viewport_meta
- Get Current Post ID in functions php, meta query filter
- How to use wp_trash_post (or wp_delete_post) for deleting a (or all) post(s) from custom post type?
- change the url paths in the stylesheet dynamically
- When sale price is 0.00 show only regular price
- Dumping variable in custom pre_gets_post function in functions.php, returns NULL
- How to load parent theme template parts in child theme
- allow only one post in specific category
- ACF not showing
- Cannot modify header information – headers already sent (wp_redirect in functions.php)
- Javascript function not working when placed in Text Block
- Need help getting a function to function
- Load Post into DIV with Ajax
- How to remove comment count column in Posts inside the admin dashboard?
- Cannot declare function twice [closed]
- Running script based on Category
- Get array of metakey in all posts
- How do I hook into the container of wp_nav_menu?
- Remove links from the_content when using filters wp_trim_excerpt
- Function not working inside of a function in functions.php
- How to Use Global Variables Inside Header and Footer
- Redirect website domain (including all pages) to external URL after Popup message (few seconds)
- Where do I go to edit this area? [closed]
- Enable right click on WordPress site
- Check from functions.php if function exists in footer.php
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Email Exists ERROR into Ajax registration form
- How to overwrite template.php file
- Limit number of characters in different excerpts
- Facebook OpenGraph error, Call to undefined function wp_get_attachment_src()
- How to avoid saving empty data to sql while using add_meta_box
- How to assign php file(template) to several pages with same prefix page name/slug
- How to fix Function create_function() is deprecated in / themes
- Block all plug-ins from initiating redirection upon activation?
- How to display my comment count in the wordpress admin bar?
- custom error message for empty username and password using authenticate filter not working
- Modifying a WordPress Plugin
- Last updated posts shortcode in functions.php
- I have an fatal error on my funcyions.php
- Get post_author email for Zapier Integration
- get_locale() is different from $locale
- If click on Save/Publish change Post Status to Pending Review instead Publish
- Remove all video attachment, both files and post/postmeta from database?
- Remove the delete link from pages without a plugin
- Custom download page
- HowTo: Add wrapper to columns shortcode?
- How to include a hyperlink in the body text of a custom password protected form?
- Get title from IDs in a string
- uninstall a theme programmaticlly
- Could you please correct the code is_admin()
- Dynamically generated Navigation Diagram using Custom Fields
- Update add_image_size
- Function to get the name in database table from the comma separated string
- Full size image option removing problem
- Limit length of headline in Editor
- Force resize for all video content
- Way of getting queried loop before the query with a filter hook?
- Why my wp_enqueue_script doesnt work on some page?
- Need to use an external variable inside a function
- Trying to get this function to show below the content