=' ) ) { add_action( 'admin_notices', array(&$this, 'admin_notice') ); add_action( 'admin_head', array( $this, 'dismiss' ) ); } } /** * Dismiss notice. */ public function dismiss() { if ( isset( $_GET['sheeba-lite-dismiss'] ) && check_admin_referer( 'sheeba-lite-dismiss-action' ) ) { update_option( 'sheeba-lite-dismissed-notice', intval($_GET['sheeba-lite-dismiss']) ); remove_action( 'admin_notices', array(&$this, 'admin_notice') ); } } /** * Admin notice. */ public function admin_notice() { ?>