PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
plugins
/
wp-rocket
/
inc
/
3rd-party
/
plugins
<?php defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); /** * Exclude plugin custom login page template from cache. * * @since 2.7 */ if ( class_exists( 'Custom_Login_Page_Template' ) ) { add_filter( 'rocket_cache_reject_uri', 'rocket_add_custom_login_exclude_pages' ); add_action( 'update_option_custom_login_page_template', 'rocket_after_update_single_options', 10, 2 ); } /** * Add custom login page to excluded urls array * * @since 2.7 * @author Remy Perona * * @param Array $urls Array of pages to exclude. * @return Array Updated array of pages to exclude */ function rocket_add_custom_login_exclude_pages( $urls ) { $clpt_options = get_option( 'custom_login_page_template' ); $urls = array_merge( $urls, get_rocket_i18n_translated_post_urls( $clpt_options['login_page_id'], 'page' ) ); return $urls; } /** * Add custom login page to excluded urls array on plugin activation * * @since 2.7 * @author Remy Perona */ function rocket_activate_custom_login_page_template() { add_filter( 'rocket_cache_reject_uri', 'rocket_add_custom_login_exclude_pages' ); // Update the WP Rocket rules on the .htaccess. flush_rocket_htaccess(); // Regenerate the config file. rocket_generate_config_file(); } add_action( 'activate_custom-login-page-template/custom-login-page-template.php', 'rocket_activate_custom_login_page_template', 11 ); /** * Remove custom login page from excluded urls array on plugin activation * * @since 2.7 * @author Remy Perona */ function rocket_remove_custom_login_exclude_pages() { remove_filter( 'rocket_cache_reject_uri', 'rocket_add_custom_login_exclude_pages' ); // Update the WP Rocket rules on the .htaccess. flush_rocket_htaccess(); // Regenerate the config file. rocket_generate_config_file(); } add_action( 'deactivate_custom-login-page-template/custom-login-page-template.php', 'rocket_remove_custom_login_exclude_pages', 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]