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?
- Theme folder name changed after update theme
- .htaccess for file .zip for update WordPress Theme self-host [closed]
- When trying to run build script with gutenberg (with SVG import) – Error: Plugin name should be specified
- I am using update_option function to update theme options programatically but page needs to be refreshed many time for changes to reflect!
- Adding copyright notice to page bottom in full site editing template
- Is there any halfway decent documentation on the wp.media JS class?
- Block to show posts from same category
- How can I enforce user to use Application password to generate JWT token? [closed]
- WordPress Includes mejs 404 error
- Unwanted spacing for cover block
- Only show read more text when when wp:post-excerpt meets excerptLength
- Activate Gutenberg group block for theme
- Where to find the category page in Bosa Theme
- Querying by post category slug with core/query block markup
- Is child-theme required when modyfing “Appearence > Editor”?
- How can a theme define which settings for blocks are available in the block editor?
- Submenus with recursive submenus
- Right to Left WordPress (Farsi) Changing the Order of Taxonomy to Term in URL
- How to Add Dynamic Sliders to WordPress Customizer with JavaScript
- wp_nav_menu_items callback not triggered
- Smooth Scrolling Animation of Image Between Two Containers (Elementor) Using JavaScript and GSAP
- How to add multiple custom blocks in custom WordPress theme using create-block?
- How to enable wc_add_to_cart_message?
- Export WordPress theme with modifications for other site
- WP Update Messages get cut off during Theme update
- WordPress theme.json: Why doesn’t “contentSize” work
- How to create a template for a post in Query Loop block?
- Home.php not working with underscores
- Custom add to cart does not work well only on the first time
- Style categories block in query loop
- Homepage with latest posts does not include current-menu-item
- Trying to create a cutom query with pagination and page 2 breaking. Any help?
- WooCommerce custom add to cart buttons does not add products to cart if you’re logged out
- Lazy loading in my own WordPress theme
- Dropdown Toggle Split in Bootstrap Navwalker WordPress
- WordPress 6.4.2 – can’t load editor style css using ‘after_setup_theme’ or ‘admin_init’ actions
- Why is wp_nav_menu() not removing the container around the nav ?
- Dashboard and Site Language only partially translated (in own theme)
- Can not edit WordPress preset CSS-classes in own Theme
- Create multiple facades for same product?
- old content are still displaying after using wp reset and clear cache
- Why does customize_register only load inside of functions.php for me?
- Selective styles and scripts inclusion
- Confusion about theme’s parent and child functions.php file
- WordPress – Old theme causing display issues
- editor.css and block-editor.js are not applied even though they are in the theme setup
- Array offset error on type bool and null, due to admin-bar support added
- What is the php code for an Elementor header?
- how can i modify the default wordpress sidebar
- How to add group-row to InnerBlock template?
- Javascript localization doesn’t load. How to Internationalize javascript without plugin?
- Adding block style dependencies
- How prevent STDOUT of Plugin_Upgrader->upgrade(…)?
- How to Use Webpack with WordPress Script Modules and Enqueue a Custom Class
- Registering a block in “My Patterns”
- Checkboxes on custom `WP_List_Table` also check select all
- Which is recommended to learn first: classic themes or block themes?
- Display Gutenberg blocks from “Posts Page” above the post list?
- How to add translation for FSE theme?
- Disable creating sort index SELECT post_modified_gmt
- Twenty Twenty-Four Theme, where to put the personalized CSS style rules?
- Custom loop menu is not working
- Convert base64 string to WordPress attachment uploads multiple images instead of a single one
- WP “optimizing” PNGs into thumbnails 5X larger than originals – FIX
- Use PHP variable defined in parent file in included pattern (WordPress Block Theme)
- get_theme_mode & set_theme_mode in block editor
- Block editor layout not present in post editor
- Modify HTMl on header.php on Block Theme like Twenty Twenty Three?