Processor::get(), 'brand_logo_url' => \SureCart::account()->brand->logo_url ?? null, 'brand_color' => \SureCart::account()->brand->color ?? null, 'shop_page_edit_url' => \SureCart::pages()->getId( 'shop' ) ? admin_url( 'post.php?post=' . \SureCart::pages()->getId( 'shop' ) . '&action=edit' ) : '', 'dashboard_page_edit_url' => \SureCart::pages()->getId( 'dashboard' ) ? admin_url( 'post.php?post=' . \SureCart::pages()->getId( 'dashboard' ) . '&action=edit' ) : '', ]; } /** * Enqueue scripts with additional learn-specific data. * * @return void */ public function enqueue() { $this->data = array_merge( $this->data, self::bootData() ); parent::enqueue(); } }