Created
March 12, 2015 02:14
-
-
Save fikrirasyid/d9e83deb4e73fa964d72 to your computer and use it in GitHub Desktop.
Ajaxifying Comment - Add "submitting comment" message:
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
/** | |
* Adding processing message at comment form | |
* Use inline style so we don't need to load more file | |
*/ | |
function simple_ajax_comment_form_mod( $settings ){ | |
printf( '<div id="submitting-comment" style="padding: 15px 20px; text-align: center; display: none;">%s</div>', __( 'Submitting comment...' ) ); | |
} | |
add_action( 'comment_form', 'simple_ajax_comment_form_mod' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment