woocommerce_skip_legacy_rest_api_plugin_auto_install
woocommerce_skip_legacy_rest_api_plugin_auto_install
Appears in: woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3, woocommerce.9.3.1, woocommerce.9.3.3, woocommerce.9.4.2, woocommerce.9.4.3, woocommerce.9.5.1, woocommerce.9.5.2
Hook Type: filter
Displaying hooks found in version: woocommerce.9.5.2apply_filters('woocommerce_skip_legacy_rest_api_plugin_auto_install') is found 1 times:
- /includes/class-wc-install.php line 1274
* * @param bool $skip_auto_install False, defaulting to "don't skip the plugin automatic installation". * @returns bool True to skip the plugin automatic installation, false to install the plugin if necessary. */ if ( apply_filters( 'woocommerce_skip_legacy_rest_api_plugin_auto_install', $previously_installed_by_us ) ) { return; } if ( ( 'yes' !== get_option( 'woocommerce_api_enabled' ) && 0 === wc_get_container()->get( Automattic\WooCommerce\Internal\Utilities\WebhookUtil::class )->get_legacy_webhooks_count( true ) ) ) { return;