register_category(); } /** * Registers all plugin abilities. * Hooked to wp_abilities_api_init. * * @return void */ public function register_abilities_hook() { $this->register_generate_description(); $this->register_generate_short_description(); $this->register_generate_image(); $this->register_generate_brands(); $this->register_generate_tags(); $this->register_mark_ai_generated(); $this->register_create_product_draft(); $this->register_create_product_published(); $this->register_publish_product_draft(); $this->register_create_shop_coupon(); $this->register_search_product_id(); $this->register_update_product(); $this->register_delete_product(); $this->register_update_order_status(); if ( class_exists( 'Wt_Smart_Coupon' ) ) { $this->register_create_bogo(); $this->register_trash_bogo(); $this->register_list_bogos(); $this->register_toggle_bogo_status(); $this->register_restore_bogo(); $this->register_delete_bogo_permanently(); $this->register_duplicate_bogo(); } } }