Skip to:
Content
Pages
Categories
Search
Top
Bottom

Your account has the ability to post unrestricted HTML


  • wm
    Participant

    @webbmasterpianise

    How do I hide the message “Your account has the ability to post unrestricted HTML”

    I do not want this warning to display on a secure site where all is admins.

    Can this function.php snipped be adjusted to remove this message?

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    
    function ja_return_blank() {
    
        return '';
    
    }
Viewing 2 replies - 1 through 2 (of 2 total)

  • Robin W
    Moderator

    @robin-w

    This warning is contained in three templates all in
    wp-content/plugins/bbpress/tempates/default/bbpress/

    form-forum.php
    form-reply.php
    form-topic.php

    You can create a folder in the root of your theme called ‘bbpress’ and copy these three themes to it, and then alter this text to read whatever you like, or remove it.

    Or you could add the following code to your functions file

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Your account has the ability to post unrestricted HTML' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    Just make ‘new text’ whatever you want.

    or you could probably get you function to do something, but I don’t offhand know what you’d need to do.


    wm
    Participant

    @webbmasterpianise

    Tnx for a fast answer where to look!

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

You must be logged in to reply to this topic.