Title: owa123's Replies | WordPress.org

---

# owa123

  [  ](https://wordpress.org/support/users/owa123/)

 *   [Profile](https://wordpress.org/support/users/owa123/)
 *   [Topics Started](https://wordpress.org/support/users/owa123/topics/)
 *   [Replies Created](https://wordpress.org/support/users/owa123/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/owa123/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/owa123/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/owa123/engagements/)
 *   [Favorites](https://wordpress.org/support/users/owa123/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Members Membership Plugin] Form label escaping HTML](https://wordpress.org/support/topic/form-label-escaping-html/)
 *  Thread Starter [owa123](https://wordpress.org/support/users/owa123/)
 * (@owa123)
 * [6 months ago](https://wordpress.org/support/topic/form-label-escaping-html/#post-18696559)
 * Yes, The extra filter code that caused the labels to escape html was in class-
   wp-members-forms.php: Filter the form label args before assembly in the create_form_label
   label function.
 * Your examples helped to understand how to do this, however both didn’t quite 
   work. It’s not just the tos i’m using, i’m adding html to other fields that are
   type checkbox.
 * In your 1st example, it renders the html correctly but it appears to completely
   remove the label tag and replace it with the text you set in the filter.
 * In your 2nd example, the label that you set in the admin ui remains unchanged
   on the form and it adds the text you set in the filter under the input tag creating
   more like an additional description field. The 1st example would work if it didn’t
   remove the label tag.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Members Membership Plugin] Form label escaping HTML](https://wordpress.org/support/topic/form-label-escaping-html/)
 *  Thread Starter [owa123](https://wordpress.org/support/users/owa123/)
 * (@owa123)
 * [6 months ago](https://wordpress.org/support/topic/form-label-escaping-html/#post-18693743)
 * Yes, I can see this in the codebase. Here is an example:
 *     ```wp-block-code
       add_filter( 'wpmem_fields', 'members_fields_filter', 10, 2 );function members_fields_filter( $fields, $tag ) {$fields['tos']['label'] = '<div class="c-label"><strong>Personal Information</strong>:   Please tick to confirm you have read our use of <a href="/terms" target="_blank">Terms and Conditions</a>.</div>';return $fields;
       ```
   
 * Even if the option to allow HTML only through a filter function would be useful,
   otherwise it’s limited and links are fairly common in labels.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cache Enabler] Cache directories not created since version 1.8.10](https://wordpress.org/support/topic/cache-directories-not-created-since-version-1-8-10/)
 *  Thread Starter [owa123](https://wordpress.org/support/users/owa123/)
 * (@owa123)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/cache-directories-not-created-since-version-1-8-10/#post-16044171)
 * Just to clarify, this happens when you install the plugin from fresh and the 
   wp-content/settings and wp-content/cache direcotires are not created.

Viewing 3 replies - 1 through 3 (of 3 total)