- upgrade Extensions page;

This commit is contained in:
Nikita Sinelnikov
2023-01-03 01:11:26 +02:00
parent ce5adf050b
commit 4984acb3bc
46 changed files with 268 additions and 122 deletions
@@ -50,6 +50,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Notices' ) ) {
$this->lock_registration();
$this->extensions_page();
// removed for now to avoid the bad reviews
//$this->reviews_notice();
@@ -239,6 +241,39 @@ if ( ! class_exists( 'um\admin\core\Admin_Notices' ) ) {
), 10 );
}
/**
* Checking if the "Membership - Anyone can register" WordPress general setting is active
*/
public function extensions_page() {
global $pagenow;
if ( isset( $pagenow ) && 'admin.php' === $pagenow && isset( $_GET['page'] ) && 'ultimatemember-extensions' === $_GET['page'] ) {
ob_start();
?>
<p>
<?php _e( '<strong>All Access Pass</strong> Get access to all Ultimate Member extensions at a significant discount with our All Access Pass.', 'ultimate-member' ) ?>
</p>
<p>
<a href="https://ultimatemember.com/pricing/" class="button button-primary" target="_blank">
<?php _e( 'View Pricing', 'ultimate-member' ) ?>
</a>
</p>
<?php
$message = ob_get_clean();
$this->add_notice(
'extensions_all_access',
array(
'class' => 'info',
'message' => $message,
'dismissible' => false,
),
10
);
}
}
/**
* To store plugin languages