woocommerce_skip_legacy_rest_api_plugin_auto_install

woocommerce_skip_legacy_rest_api_plugin_auto_install

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.8.3

apply_filters('woocommerce_skip_legacy_rest_api_plugin_auto_install') is found 1 times:

  • /includes/class-wc-install.php line 1195
    		 *
    		 * @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', false ) ) {
    			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;