woocommerce_enable_auto_update_db │ хук-фильтр │ WC 3.2.0

Allow WooCommerce to auto-update without prompting the user.

Использование

add_filter( 'woocommerce_enable_auto_update_db', 'wp_kama_woocommerce_enable_auto_update_db_filter' );

/**
 * Function for `woocommerce_enable_auto_update_db` filter-hook.
 * 
 * @param  $true 
 *
 * @return 
 */
function wp_kama_woocommerce_enable_auto_update_db_filter( $true ){
	// filter...
	return $true;
}
$true
-

Список изменений

С версии 3.2.0 Введена.

Где вызывается хук

WC_Install::is_db_auto_update_enabled()
woocommerce_enable_auto_update_db
woocommerce/includes/class-wc-install.php 925
return (bool) apply_filters( 'woocommerce_enable_auto_update_db', true );

Где используется хук в WooCommerce

Использование не найдено.