woocommerce_enable_auto_update_db

woocommerce_enable_auto_update_db

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_enable_auto_update_db') is found 1 times:

  • /includes/class-wc-install.php line 691
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
         * Allow WooCommerce to auto-update without prompting the user.
         *
         * @since 3.2.0
         */
        if ( apply_filters( 'woocommerce_enable_auto_update_db', false ) ) {
            self::update();
        } else {
            WC_Admin_Notices::add_notice( 'update', true );
        }
    } else {
        self::update_db_version();