PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
plugins
/
wp-rocket
/
inc
/
3rd-party
/
plugins
<?php /** * Compatibility with Cookie Notice by dFactory * @link https://wordpress.org/plugins/cookie-notice/ */ defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' ); if ( class_exists( 'Cookie_Notice' ) ) { // Create cache version based on value set in cookie_notice_accepted cookie add_filter( 'rocket_cache_dynamic_cookies', 'rocket_get_cookie_notice_cookie' ); } /** * Return the cookie name set by Cookie Notice plugin * * @since 2.11.6 * @author Arun Basil Lal * * @param $cookies array List of dynamic cookies * @return array List of dynamic cookies with the Cookie Notice cookie appended */ function rocket_get_cookie_notice_cookie( $cookies ) { $cookies[] = 'cookie_notice_accepted'; return $cookies; } /** * Add dynamic cookie when Cookie Notice plugin is activated * * @since 2.11.6 * @author Arun Basil Lal */ function rocket_add_cookie_notice_dynamic_cookie() { // Create cache version based on value set in cookie_notice_accepted cookie add_filter( 'rocket_cache_dynamic_cookies', 'rocket_get_cookie_notice_cookie' ); // Update the WP Rocket rules on the .htaccess file. flush_rocket_htaccess(); // Regenerate the config file. rocket_generate_config_file(); // Clear WP Rocket cache rocket_clean_domain(); } add_action( 'activate_cookie-notice/cookie-notice.php', 'rocket_add_cookie_notice_dynamic_cookie', 11 ); /** * Remove dynamic cookie when Cookie Notice plugin is deactivated. * * @since 2.11.6 * @author Arun Basil Lal */ function rocket_remove_cookie_notice_dynamic_cookie() { // Delete the dynamic cookie filter remove_filter( 'rocket_cache_dynamic_cookies', 'rocket_get_cookie_notice_cookie' ); // Update the WP Rocket rules on the .htaccess file. flush_rocket_htaccess(); // Regenerate the config file. rocket_generate_config_file(); // Clear WP Rocket cache rocket_clean_domain(); } add_action( 'deactivate_cookie-notice/cookie-notice.php', 'rocket_remove_cookie_notice_dynamic_cookie', 11 );
[+]
..
[-] s2member.php
[edit]
[-] wp-retina-2x.php
[edit]
[+]
slider
[-] autoptimize.php
[edit]
[-] disqus.php
[edit]
[+]
mobile
[-] wp-offload-s3-assets.php
[edit]
[-] wp-offload-s3.php
[edit]
[-] sumome.php
[edit]
[-] wp-print.php
[edit]
[+]
i18n
[-] varnish-http-purge.php
[edit]
[+]
cookies
[-] thrive-leads.php
[edit]
[-] envira-gallery.php
[edit]
[-] advanced-custom-fields.php
[edit]
[+]
security
[-] jetpack.php
[edit]
[-] mailchimp.php
[edit]
[+]
seo
[+]
rating
[+]
ecommerce
[-] appbanners.php
[edit]
[-] buddypress.php
[edit]
[-] geotargetingwp.php
[edit]
[-] simple-custom-css.php
[edit]
[-] wp-rest-api.php
[edit]
[-] custom-login.php
[edit]
[-] cookie-notice.php
[edit]
[+]
page-builder
[-] age-verify.php
[edit]