WC_Install::install_actions()

Install actions when a update button is clicked within the admin area.


Description Description

This function is hooked into admin_init to affect admin only.


Source Source

File: includes/class-wc-install.php

	public static function install_actions() {
		if ( ! empty( $_GET['do_update_woocommerce'] ) ) { // WPCS: input var ok.
			check_admin_referer( 'wc_db_update', 'wc_db_update_nonce' );
			self::update();
			WC_Admin_Notices::add_notice( 'update', true );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.