Skip to:
Content
Pages
Categories
Search
Top
Bottom

Unlimited edit time


  • steilenhang
    Participant

    @steilenhang

    I want my users to be able to edit their posts for ever. How do I do that? As of now I have put a big number in the “Disallow editing after ” in “Settings -> Forums”, but that will run out one day.

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

  • Remi
    Participant

    @drpepper75

    You can edit the following to your functions.php (for example)

    <code>

    function no_edit_lock($retval, $cur_time, $lock_time, $post_date_gmt){

    return false;

    }

    add_filter( ‘bbp_past_edit_lock’, ‘no_edit_lock’, 1, 4);

    </code>

    This will overwrite the default edit_lock behavior.


    steilenhang
    Participant

    @steilenhang

    Thanks, I will try that!


    steilenhang
    Participant

    @steilenhang

    Well it did not work right out of the box. What does “1, 4″ do at the end of this line?

    add_filter( ‘bbp_past_edit_lock’, ‘no_edit_lock’, 1, 4);


    steilenhang
    Participant

    @steilenhang

    oh wait, might have got it working. I replaced ‘ with ‘:

    function no_edit_lock($retval, $cur_time, $lock_time, $post_date_gmt){
    return false;
    }
    add_filter( ‘bbp_past_edit_lock’, ‘no_edit_lock’, 1, 4);

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

You must be logged in to reply to this topic.