woocommerce_skip_legacy_rest_api_plugin_auto_install

woocommerce_skip_legacy_rest_api_plugin_auto_install

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.1.2

apply_filters('woocommerce_skip_legacy_rest_api_plugin_auto_install') is found 1 times:

  • /includes/class-wc-install.php line 1234
    		 *
    		 * @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;