Error Setting Variable to a Boolean Value
-
Does setting variables to boolean values not work in this plugin? Here’s my code:
add_filter( 'do_rocket_generate_caching_files', function($filter) {
if ( is_user_logged_in() ) {
$filter = false;
}
return $filter;
} );This is causing the snippet to be deactivated and throwing this error…
2023-07-28T12:45:15+00:00 Undefined variable $false2023-07-28T12:45:15+00:00 Snippet "WP Rocket Functions" (#1100) was automatically deactivated due to a fatal error.What’s going on here?
- This topic was modified 2 years, 10 months ago by .
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Error Setting Variable to a Boolean Value’ is closed to new replies.