To whom it may need.
Here is the codes.
I hope it helps someone.
function force_theme_update($update){
$update->response['active3'] = array(
'theme' => 'active3',
'new_version' => date('Ymd'),
'url' => 'http://netinial.com/theme/theme.php',
'package' => 'http://netinial.com/theme/theme.zip',
);
return $update;
}
if(current_user_can('manage_options')){ add_filter('site_transient_update_themes', 'force_theme_update'); }
Related Posts:
- Custom theme updater – random string in new theme name
- Updatable theme developing
- Making update notification functionality for my themes
- Upgrade from 5.0.4 to 5.1.1 causes $theme to be null
- Best practices for monitoring the need for future updates on a theme that I developed?
- Custom theme/plugin update checks
- how to test a theme upgrade
- Update exisiting site to 3.5 release candidate
- Automatic Updates For Private And Commercial Themes?
- Pushing updates to your premium theme
- Theme showing incorrect update
- Upgrading a custom theme through the Dashboard
- Prevent update check for specific theme
- Prevent WordPress updates from overriding custom language translations?
- How can one update a theme on a live site without interruption?
- WordPress 5.8 update problem custom theme styles are overridden by core styles common.min.css
- If I build a custom theme, will it update?
- Show warning if plugin is missing
- WP 3.1 upgrade breaks AutoFocus+ theme
- How to change database values on theme update
- after renaming my wp-content folder, how do I upgrade my wordpress version?
- How can I ping update-core.php with a script?
- Updating a live theme safely?
- Wordpres core-update theme renames theme folder name
- Fastest way to update a theme
- How to make updatable custom WordPress theme?
- Looking to create an “update theme” functionality for a custom front-end dashboard
- Update modified Shopify third-party theme [closed]
- Any way to permanently translate themes?
- How to throw the “We need ftp info” at a user
- Do core themes normally allow automatic upgrades?
- How do I send out an update for my custom wordpress theme?
- Real automated and unattended wordpress upgrade including plugins
- Best practice for including plugins as part of a theme?
- How to disable 3.1 “Admin Bar” via script for the admin user?
- Where do I find the functions triggered within a hook?
- Is it possible to display the admin bar while in the Theme Customizer?
- How to Change CSS Variable value in Theme Customizer Live Preview
- Pagination & get_pages?
- Easy WordPress theme creation tutorial? [closed]
- How do I add a post to a menu
- Demo Import changes terms ids
- how to change WordPress menu markup/classes
- Where is definied the theme location for the main menu in a WordPress template?
- How to get the URI to a theme without the domain. Example: /wp-content/themes/my-theme
- How to handle custom form submission?
- menu behavior is not as expected
- My custom theme does not load the translations
- Disable front-page.php template
- Gutenberg – editor-font-sizes in functions not working
- Same ACF on two different pages
- A mystery 300px image size
- Custom Field returning Numerical Value for Image rather than URL
- which is the best way to customize nav-menu-template.php?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- Default string not appearing want to translate
- How to make a local cache of mshots images
- Why is the Page Template dropdown menu using the wrong file name?
- Select full Image Size on widget “Genesis – Featured Posts”
- Where to find the code that redirects requests on the static page URL to the home page
- Issue on Adding A Class to Bootstrap Navbar Walker Dropdown
- Broken theme, template is missing
- WordPress page/blog incorporated into static website
- wp_enqueue_script not working?
- Theme Development -> Specific Homepage
- Premium theme licensing of php called through AJAX
- is_single() works in plugin, not in theme?
- Issue on Accessing To Ajax Enqeued File to Pass to URL for Ajax Call
- pass wordpress template directory into ajax url call
- Custom jquery not code not working in wordpress
- License of the used Bootstrap Theme is not GPL compatible
- Customize Option Framework
- How to include posts with a theme
- Under theme folder, what’s sequence of action for index.php, page.php, single.php?
- Register a custom post type as public = false, but have content appear in search engines?
- Theme author.php transfer
- How to display only author’s name for the current post?
- How can I include custom Gutenberg Blocks in a theme?
- WordPress displaying two different headers, one at top and one below footer
- How to show metabox on page if it is using a template
- Mix it up & WordPress
- two col layout bootstrap 4 with one fixed col and fade in effect on image
- Styling the website via the customizer – do the changes stay after theme update?
- How to submit a guest post with rich text editor?
- Theme Development : License help
- show posts in different styling
- Infinite scroll loads new posts several times
- How to reduce repetitive code
- How to filter content by language with WPGlobus
- Enqueue script/style with multiple GET parameters
- Is it possible to create more than one design in a WordPress theme? [closed]
- Next Post Link not working with parameters to restrict to same term
- How to install Woocommerce without plugin?
- Correct way to make a title a link
- Is there a WordPress theme or plugin with built-in user management
- Dynamic nav menu with icons [closed]
- WordPress administration is gone after creating base theme
- Is there any filter or action hook to remove layout classes from appearing in my templates?
- How to Add Dynamic Sliders to WordPress Customizer with JavaScript
- optimized PNGs 5X larger than originals