• Resolved XxUnkn0wnxX

    (@xxunkn0wnxx)


    i found this on the forums somewhere
    they said to place this in the factions file:

    return apply_filters( ‘disable_comments_allow_persistent_mode’, true );

    but i thought it was to be set to false & i have many themes so does this mean i would have to edit each theme i add? isn’t there a way to disable persistent_mode for ever? or place a setting in the wp-config file?

    https://ww.wp.xz.cn/plugins/disable-comments/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter XxUnkn0wnxX

    (@xxunkn0wnxx)

    were “factions” = functions file

    sorry for the spelling mistakes my keyboard has been a bit glitchy..

    Plugin Contributor Samir Shah

    (@solarissmoke)

    isn’t there a way to disable persistent_mode for ever? or place a setting in the wp-config file?

    Currently there isn’t, but this is a good idea. I will add this to the next release.

    As regards the filter, the code you have pasted above is wrong and will break things. You need to use something like this:

    add_filter('disable_comments_allow_persistent_mode', '__return_false');

    Accidentally I have enabled the “Use persistent mode” on my website and
    now when I wanted to enable my comment section again it’s not showing.

    I’ve already done the recommendation you made here: https://ww.wp.xz.cn/support/topic/how-to-re-enable-comments-after-using-persistent-mode?replies=3

    I also tried adding that code on wp-config and functions.php still no good.

    add_filter(‘disable_comments_allow_persistent_mode’, ‘__return_false’);

    I hope you can help me mate

    Plugin Contributor Samir Shah

    (@solarissmoke)

    @xxunkn0wnxx you can now disable persistent mode with:

    define('DISABLE_COMMENTS_ALLOW_PERSISTENT_MODE', false);

    in wp-config.php

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

The topic ‘wp config disable persistent mode?’ is closed to new replies.