wordpress - xprofile_allowed_tags not accepting unordered list -


im trying budypress site work wp_editor on profile fields. far ok tags being striped.

i added following:

add_filter( 'xprofile_allowed_tags', 'custom_xprofile_allowed_tags' );  function custom_xprofile_allowed_tags($tags){  $tags['li'] = array(); $tags['ul'] = array( 'type' => true   );    return $tags;  } 

but still saving profile field without <ul><li>

i know filter working because if add unset($tags['strong']); strong tag stripped.

thanks help

my code working fine didn't realize need change filter displaying data. code :

function xprofile_with_html() {     //change allowed tags use same posts when save     add_filter( 'xprofile_allowed_tags', 'custom_xprofile_allowed_tags',0 );      //remove wp_filter , add custom 1 when showing in edit field     remove_filter( 'bp_get_the_profile_field_edit_value',      'wp_filter_kses',       1 );     add_filter( 'bp_get_the_profile_field_edit_value', 'my_custom_profile_filter',0,3 );  } add_action( 'bp_init', 'xprofile_with_html' );  function custom_xprofile_allowed_tags($tags){      global $allowedposttags;     return $allowedposttags;  }  function my_custom_profile_filter($data){      return xprofile_filter_kses($data);       } 

with these can use wp_editor xprofile fields


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -