WordPress.org

Ready to get started?Download WordPress

Forums

Members
HTML in Custom Error Message (per page) (4 posts)

  1. Robert
    Member
    Posted 2 years ago #

    Hello!

    Awesome plugin, I love it. I have a request though. I can add HTML to the global custom error message, but if I try to add it to the custom error message on a per page basis the HTML shows up as text. Is there anyway to do this? I'd like to wrap the message in a class so I can apply some styles to it.

    http://wordpress.org/extend/plugins/members/

  2. melriks
    Member
    Posted 1 year ago #

    I found the same. Any fix for this bug in an otherwise fantastic plug-in.

  3. melriks
    Member
    Posted 1 year ago #

    You can turn html back on by editing includes/content-permissions.php

    Line 110 return apply_filters( 'members_post_error_message', $return );

    apply_filters is converting your html code to special characters.

    Change line 110 to return htmlspecialchars_decode($return);

    and it will output text wrapped in html or process shortcodes.

  4. J. C. (@ommunist)
    Member
    Posted 1 year ago #

    Will it output shortcodes as well?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags