*/ 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'; ?>
Easy Accordion

Enjoying Easy Accordion?

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

post_type ) { return; } if ( 'post' !== $screen->base ) { return; } if ( get_option( 'ea_free_blocks_promo_notice_dismissed' ) ) { return; } $block_editor_url = admin_url( 'post-new.php?post_type=sp_eap_template&eabblock_inserter=true' ); $nonce = wp_create_nonce( 'ea_free_blocks_promo_notice' ); ?>
'; $highlight_blocks = ''; echo wp_kses( sprintf( /* translators: 1: opening strong, 2: closing strong, 3: opening anchor to block editor, 4: closing anchor. */ __( '%1$sMeet the new Easy Accordion%2$s — gives you %3$s15+ Gutenberg Blocks%4$s and %5$s200+ Ready Patterns%6$s to design visually — see every change live.', 'easy-accordion-free' ), '', '', $highlight_blocks, '', $highlight_open, '' ), array( 'strong' => array(), 'a' => array( 'class' => array(), 'href' => array(), 'target' => array(), 'rel' => array(), ), ) ); ?>
post_type || 'add' !== $screen->action ) { return; } if ( get_option( 'ea_free_blocks_promo_modal_choice' ) ) { return; } $block_editor_url = admin_url( 'post-new.php?post_type=sp_eap_template&eabblock_inserter=true' ); $nonce = wp_create_nonce( 'ea_free_blocks_promo_modal' ); $modal_video_url = 'https://easyaccordion.io/wp-content/uploads/2026/06/EA-Popup-V01-2.mp4'; ?>