Last active
November 3, 2017 10:37
-
-
Save pinalj/088b63bc78e77c293ad21761d094b1bc to your computer and use it in GitHub Desktop.
Update the option record
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_ajax_my_dismiss_notice', 'my_dismiss_notice' ); | |
function my_dismiss_notice() { | |
update_option( 'my_dismiss_notice', true ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment