current_user_id = get_current_user_id(); } public function review_notice() { if ( ! get_option( 'bradbury_theme_installed_time' ) ) { update_option( 'bradbury_theme_installed_time', time() ); } $this_notice_was_dismissed = $this->get_notice_status('review-user-' . $this->current_user_id); if ( !$this_notice_was_dismissed ) { add_action( 'admin_notices', array( $this, 'review_notice_markup' ) ); // Display this notice. } } /** * Show HTML markup if conditions meet. */ public function review_notice_markup() { $dismiss_url = wp_nonce_url( remove_query_arg( array( 'activated' ), add_query_arg( 'bradbury-hide-notice', 'review-user-' . $this->current_user_id ) ), 'bradbury_hide_notices_nonce', '_bradbury_notice_nonce' ); $theme_data = wp_get_theme(); $current_user = wp_get_current_user(); if ( ( get_option( 'bradbury_theme_installed_time' ) > strtotime( '-21 day' ) ) ) { return; } ?>
<?php esc_attr_e( 'Bradbury', 'bradbury' ); ?>

' . esc_html( $current_user->display_name ) . '', '' . esc_html( $theme_data->Name ) . ' Theme', '
', esc_html( $theme_data->Name ) ); ?>