What happend if I update my website?

There should be a choice in Admin, Updates to update to the latest version. Use that, as it is ‘smart’ enough to figure out all the updates needed to the database structures, etc. After updating, use the Admin, Update screen to ensure that all plugins and themes are updated. Do the ‘Check Again’ until everything … Read more

Custom plugin which downloads updates from custom endpoint, extracts new version zip into a new name

Thanks Tom J Nowell! That led me down the right direction and I’ve been able to update successfully. Here’s what I did: Re-structured my repo to match: |– .git |– .gitattributes |– .gitignore |– README.md |– package.json |– plugin-name |– plugin-name.php |– src |– … Code new version in a new branch, merge into master … Read more

Looking to create an “update theme” functionality for a custom front-end dashboard

You could add a REST endpoint to check if the current theme has an update. Here’s a quick example to get you started: function wpd_register_themecheck_route(){ register_rest_route( ‘themecheck/v1’, ‘/updates/’, array( ‘methods’ => ‘GET’, ‘callback’ => ‘wpd_check_theme’ ) ); } add_action( ‘rest_api_init’, ‘wpd_register_themecheck_route’ ); function wpd_check_theme(){ $current_theme = get_option( ‘template’ ); $theme_updates = get_option( ‘_site_transient_update_themes’ ); $return … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)