angeljs

Add attributes back to the Wordpress comments form

Mar 16th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. //Add comment HTML tags - By Lady-Angel.com
  2. //Ref - http://codex.wordpress.org/Function_Reference/comment_form
  3. add_filter( 'comment_form_defaults', 'wpb_change_comments' );
  4. function wpb_change_comments( $defaults ) {
  5.  
  6. $defaults['comment_notes_after'] = '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML <abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>';
  7. return $defaults;
  8. }
  9. //End add comment HTML tags - By Lady-Angel.com
Advertisement
Add Comment
Please, Sign In to add comment