WC_Install::install_actions()public staticWC 1.0

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

This function is hooked into admin_init to affect admin only.

Method of the class: WC_Install{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Install::install_actions();

WC_Install::install_actions() code WC 8.7.0

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 );
	}
}