mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- upgrade Extensions page;
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user