• Resolved saxcbr

    (@saxcbr)


    My admin crash when I activate your plugin for automatic scanner active (too big site I think).
    How can I disable it on database/function.php as I can’t go on configuration pages with active plugin?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    To stop the scan, you can add:

    define( 'CMPLZ_DO_NOT_SCAN', true );

    Or even better, limit the scan to for example pages only:

    add('cmplz_cookiescan_post_types','cmplz_pages_only' );
    function cmplz_pages_only($post_types){
       unset($post_types['post'];
       return $post_types;
    }

    Let me know if that helps!

    Thread Starter saxcbr

    (@saxcbr)

    define( 'CMPLZ_DO_NOT_SCAN', true );
    this define works, but filters don’t, even if I try to change your code this way

    add_filter('cmplz_cookiescan_post_types','cmplz_pages_only' );
    function cmplz_pages_only($post_types){
       unset($post_types['post']);
       return $post_types;
    }

    it seems to be totally ignored, maybe the list of pages to be scanned is stored somewhere?

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @saxcbr you’re right, the list is cached for a month, you can delete the transient like this:

    delete_transient( 'cmplz_pages_list' );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to stop automatic scanner’ is closed to new replies.