is_enabled()) { return; } if ($this->hooked) { return; } $this->hooked = true; $this->ensure_cron_scheduled(); add_filter('rooster/header/actions', static function ($actions) { $actions = is_array($actions) ? $actions : array(); $actions['navigator'] = array( 'label' => __('Find a product', 'ai-eshop-optimizer'), 'icon' => 'compass', 'open' => 'navigator', 'render' => static function (array $args) { return str_replace('