required_plan = $required_plan; $message = $feature ? "{$feature} requires the AICommerce {$required_plan} plan." : "This feature requires the AICommerce {$required_plan} plan."; parent::__construct( $message, 403 ); } /** * Get the required plan slug. * * @return string */ public function get_required_plan(): string { return $this->required_plan; } }