Skip to content

Commit

Permalink
Set isPremium on the general options page
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Oct 14, 2024
1 parent e695353 commit 8848053
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Admin/GeneralOptionsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace TLA_Media\GTM_Kit\Admin;

use TLA_Media\GTM_Kit\Common\Conditionals\PremiumConditional;

/**
* GeneralOptionsPage
*/
Expand Down Expand Up @@ -127,6 +129,7 @@ public function localize_script( string $page_slug, string $script_handle ): voi
'currentPage' => $page_slug,
'root' => \esc_url_raw( rest_url() ),
'nonce' => \wp_create_nonce( 'wp_rest' ),
'isPremium' => ( new PremiumConditional() )->is_met(),
'tutorials' => $this->get_tutorials(),
'integrations' => Integrations::get_integrations(),
'adminPageUrl' => $this->util->get_admin_page_url(),
Expand Down

0 comments on commit 8848053

Please sign in to comment.