PHP code example of sympress / profiler
1. Go to this page and download the library: Download sympress/profiler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sympress / profiler example snippets
add_filter('profiler.collect', static fn (bool $collect): bool => $collect);
add_filter(
'profiler.enable_outside_development',
static fn (bool $enabled, string $environment): bool => $environment === 'staging',
10,
2,
);