|
@@ 143-148 (lines=6) @@
|
| 140 |
|
$hide_welcome_notice = get_user_meta( $current_user->ID, 'auto_load_next_post_hide_welcome_notice', true ); |
| 141 |
|
|
| 142 |
|
// Check if we need to display the welcome notice. |
| 143 |
|
if ( empty( $hide_welcome_notice ) ) { |
| 144 |
|
// If the user has just installed the plugin for the first time then welcome the user. |
| 145 |
|
if ( ( intval( time() - self::$install_date ) / WEEK_IN_SECONDS ) % 52 <= 2 ) { |
| 146 |
|
add_action( 'admin_notices', array( $this, 'welcome_notice' ) ); |
| 147 |
|
} |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
// Is admin review notice hidden? |
| 151 |
|
$hide_review_notice = get_user_meta( $current_user->ID, 'auto_load_next_post_hide_review_notice', true ); |
|
@@ 154-159 (lines=6) @@
|
| 151 |
|
$hide_review_notice = get_user_meta( $current_user->ID, 'auto_load_next_post_hide_review_notice', true ); |
| 152 |
|
|
| 153 |
|
// Check if we need to display the review plugin notice. |
| 154 |
|
if ( empty( $hide_review_notice ) ) { |
| 155 |
|
// If it has been a week or more since activating the plugin then display the review notice. |
| 156 |
|
if ( ( intval( time() - self::$install_date ) ) > WEEK_IN_SECONDS ) { |
| 157 |
|
add_action( 'admin_notices', array( $this, 'plugin_review_notice' ) ); |
| 158 |
|
} |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
// Is this version of Auto Load Next Post a beta release? |
| 162 |
|
if ( is_alnp_beta() && empty( get_transient( 'alnp_beta_notice_hidden' ) ) ) { |