*/ if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. /** * Admin review notice class. */ class Easy_Accordion_Free_Review { /** * Initialize the class and set its properties. */ public function __construct() { // add_action( 'admin_notices', array( $this, 'render_blocks_promo_notice' ) ); // add_action( 'wp_ajax_ea_free_dismiss_blocks_promo_notice', array( $this, 'dismiss_blocks_promo_notice' ) ); // add_action( 'in_admin_header', array( $this, 'render_blocks_promo_modal' ) ); // add_action( 'wp_ajax_ea_free_dismiss_blocks_promo_modal', array( $this, 'dismiss_blocks_promo_modal' ) ); } /** * Display admin notice. * * @return void */ public function display_admin_notice() { // Show only to Admins. if ( ! current_user_can( 'manage_options' ) ) { return; } // Variable default value. $review = get_option( 'sp_eafree_review_notice_dismiss' ); $time = time(); $load = false; if ( ! $review ) { $review = array( 'time' => $time, 'dismissed' => false, ); add_option( 'sp_eafree_review_notice_dismiss', $review ); } else { // Check if it has been dismissed or not. if ( ( isset( $review['dismissed'] ) && ! $review['dismissed'] ) && ( isset( $review['time'] ) && ( ( $review['time'] + ( DAY_IN_SECONDS * 3 ) ) <= $time ) ) ) { $load = true; } } // If we cannot load, return early. if ( ! $load ) { return; } $plugin_logo_image = 'https://ps.w.org/easy-accordion-free/assets/icon-256x256.gif'; ?>
We hope you had a wonderful experience using Easy Accordion. Please take a moment to leave a review on WordPress.org. Your positive review will help us improve. Thank you! 😊
Ok, you deserve ★★★★★ Nope, maybe later Never show again