ID; /* Check that the user hasn't already clicked to ignore the message */ if ( ! get_user_meta($user_id, 'example_ignore_notice') ) { echo '

'; printf(__('Grazie per avere installato Amministrazione Trasparente!
Per la gestione delle spese dai un\'occhiata a Amministrazione Aperta | Nascondi'), '?example_nag_ignore=0'); echo "

"; } } add_action('admin_init', 'example_nag_ignore'); function example_nag_ignore() { global $current_user; $user_id = $current_user->ID; /* If user clicks to ignore the notice, add that to their user meta */ if ( isset($_GET['example_nag_ignore']) && '0' == $_GET['example_nag_ignore'] ) { add_user_meta($user_id, 'example_ignore_notice', 'true', true); } } ?>