| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Declare frontend actions/filters/shortcodes |
| 5 |
*/ |
| 6 |
|
| 7 |
//if ($app->getEnv() == 'dev') { |
| 8 |
// add_filter('init', function() use ($app) { |
| 9 |
// if ($header = $app->request->header('X-HOOK')) { |
| 10 |
// error_log($header); |
| 11 |
// } |
| 12 |
// }); |
| 13 |
//} |
| 14 |
|
| 15 |
|
| 16 |
/* |
| 17 |
* Exclude For WP Rocket Settings |
| 18 |
*/ |
| 19 |
if(defined('WP_ROCKET_VERSION')) { |
| 20 |
add_filter('rocket_excluded_inline_js_content', function ($lines) { |
| 21 |
$lines[] = 'fluent_form_ff_form_instance'; |
| 22 |
$lines[] = 'fluentFormVars'; |
| 23 |
$lines[] = 'fluentform_payment'; |
| 24 |
return $lines; |
| 25 |
}); |
| 26 |
} |
| 27 |
|