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?
@saxcbr you’re right, the list is cached for a month, you can delete the transient like this:
delete_transient( 'cmplz_pages_list' );