Advertisement
designbymerovingi

myCRED: Adjust Allowed HTML

Mar 24th, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. /**
  2.  * Adjust Allowed HTML
  3.  * Adjusts what HTML elements and element attributes you are allowed to use
  4.  * in myCRED fields that support HTML.
  5.  * @verison 1.0
  6.  */
  7. add_filter( 'mycred_allowed_html_tags', 'mycredpro_adjust_allowed_tags' );
  8. function mycredpro_adjust_allowed_tags( $allowed ) {
  9.  
  10.     $allowed['a']['class'] = array();
  11.     $allowed['i'] = array( 'class' => array() );
  12.  
  13.     return $allowed;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement