is_plan( 'expert' ) ) { if ( current_user_can('administrator') ) { if ( !get_option('wpr_pro_features_dismiss_notice' ) ) { add_action( 'admin_init', [$this, 'render_notice'] ); } } if ( is_admin() && !get_option('wpr_pro_features_dismiss_notice' ) ) { add_action( 'admin_head', [$this, 'enqueue_scripts' ] ); } add_action( 'wp_ajax_wpr_pro_features_dismiss_notice', [$this, 'wpr_pro_features_dismiss_notice'] ); } } public function render_notice() { add_action( 'admin_notices', [$this, 'render_pro_features_notice' ]); } public function wpr_pro_features_dismiss_notice() { $nonce = $_POST['nonce']; if ( !wp_verify_nonce( $nonce, 'wpr-plugin-notice-js') || !current_user_can( 'manage_options' ) ) { exit; // Get out of here, the nonce is rotten! } add_option( 'wpr_pro_features_dismiss_notice', true ); return 'responsetext'; } public function render_pro_features_notice() { global $current_screen; if ( is_admin() && 'toplevel_page_wpr-addons' == $current_screen->id ) { echo '
We are happy to announce that Royal Elementor Addons Expert version now supports Dynamic Content wich includes:
Upgrade to Expert Dynamic Tutorial