Skip to:
Content
Pages
Categories
Search
Top
Bottom

Your account has the ability to post unrestricted HTML

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.


    Piani
    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.
Skip to toolbar