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?
- Solutions for generating dynamic javascript / CSS
- Custom single template for a specific category
- Get the first image from post content (eg.: hotlinked images)
- Nested comments ignored for max per page in wordpress
- wp_nav_menu sort order?
- get_option function
- Twenty Eleven home page show only excerpt
- Snippet: Use classes instead of inline styles for text alignment
- Make a custom theme translate-ready
- Grab the first paragraph of each post
- Set Expiration Date of a Post from the Frontend with wp_insert_post
- How to Handle CSS for Multiple Header header.php Files?
- Resources for a complete beginner to learn to work professionally with WordPress [closed]
- “Cheatin’ uh?” error message on multple theme directories
- How to tell if the user is an admin?
- Removing title tags from each page
- How to attach different React Components to different Dom Roots using the new WP wordpress/scripts webpack/babel
- Why is the first query affecting the second query, even after wp_reset_query() and wp_reset_postdata(), but not on the second page?
- Remove Cookies From WordPress Core
- Is it necessary to prefix every css class in a theme framework?
- Add theme templates for child categories into the template hierarchy
- Where can I access my custom page template?
- How to display posts in hyperlink with nested slugs?
- How to make Isotope and WordPress work together?
- WordPress empty Nav Menu error
- Theme Javascript.php Overwritten Nightly [closed]
- Is there a way to visualize / print out which templates were used to render a given piece of UI?
- How to use widget in a widget-less WordPress theme?
- Rewrite the HTML markup of wp-login.php
- Are there any caveats to compiling all of my theme’s SCSS into the style.css file in the theme root?
- SVG in list-style-image breaks when adding fill
- What template file is used for homepage pagination?
- Alignment Problem [closed]
- Clearing dummy data before launch
- Multiple editable areas
- Converting a static HTML template into a WP theme – How do I specify page content?
- Unwanted empty line at the beginning of document
- How to display date of blog creation
- Translate a theme with a PO file
- All pages are the same
- Theming media inserts
- How to Split loop in multiple column in archive page
- wordpress script_loader_tag in function.php
- Why not works the search.php file?
- My wordpress theme name isn’t updating straight away
- Warning: This page allows direct access to your site settings. You can break things here. Please be cautious!
- Adding a second logo next to the main one in header
- How to get next post and previous post URL in loop, single.php My WordPress 4.9.6
- Import settings from another theme
- Load multiple css simultaneously using functions.php
- bbPress: modifying template for forum index
- control posts order by select option
- Nav menus Fast previewing not working with wp_get_nav_menu_items!
- Can I use WP Multi-site on a sub-domain with a different theme but use all the original site’s posts/pages?
- How to Apply Category Filter to Pagination
- How do I use the add_query_arg function in a template tag like previous_post_link?
- Load get_page_templates into select menu
- Get all Custom Post Types
- Let users to add any number of input fields in the theme option page
- how to make a new page affected by a theme’s index.php layout?
- Add custom field to existing meta box?
- Theme Options Doesn’t Work On WP Multisite
- WordPress two sidebar layout or theme
- add_action not working in header?
- Standard Way To Do Custom Work Within A Page?
- Subsite theme mystery man replacement with Buddypress on main site [closed]
- How can I upgrade wordpress with manual?
- Recent posts with comment count in “Sidebar” template [closed]