WordPress at Your Fingertips
function is not described

WC_Install::install_actions() public WC 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.

{} It's a method of the class: WC_Install{}

No Hooks.


null. Nothing.


$result = WC_Install::install_actions();

Code of WC_Install::install_actions() WC 5.6.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' );
		WC_Admin_Notices::add_notice( 'update', true );