'; printf( __( 'Thanks for updating Omega Theme. Please read about important changes in this version and give your site a quick check. Dismiss notice' ), 'http://themehall.com/forums/topic/omega-1-0-0-updates', '?omega_upgrade_notice_ignore=1' ); echo '

'; } } } function omega_upgrade_notice_1_1_0() { if ( current_user_can( 'edit_theme_options' ) ) { $options = get_option( 'omega_framework', false ); if ( !empty( $options['upgrade-1-1-0'] ) && $options['upgrade-1-1-0'] ) { echo '

'; printf( __( 'Thanks for updating Omega Theme. Please read about important changes in this version and give your site a quick check. Dismiss notice' ), 'https://themehall.com/forums/topic/omega-1-1-0-updates', '?omega_upgrade_notice_ignore=1' ); echo '

'; } } } add_action( 'admin_notices', 'omega_upgrade_notice_1_1_0', 100 ); /** * Hides notices if user chooses to dismiss it */ function omega_notice_ignores() { $options = get_option( 'omega_framework' ); if ( isset( $_GET['omega_upgrade_notice_ignore'] ) && '1' == $_GET['omega_upgrade_notice_ignore'] ) { $options['upgrade-1-1-0'] = false; update_option( 'omega_framework', $options ); } } add_action( 'admin_init', 'omega_notice_ignores' ); ?>