new_login_url() ); } elseif ( class_exists( '\WPS\WPS_Hide_Login\Plugin' ) ) { $urls[] = rocket_clean_exclude_file( \WPS\WPS_Hide_Login\Plugin::get_instance()->new_login_url() ); } return $urls; } /** * Add WPS Hide Login custom url to caching exclusion when activating the plugin * * @since 2.11 */ function rocket_activate_wps_hide_login() { add_filter( 'rocket_cache_reject_uri', 'rocket_exlude_wps_hide_login_page' ); // Update .htaccess file rules. flush_rocket_htaccess(); // Update config file. rocket_generate_config_file(); } add_action( 'activate_wps-hide-login/wps-hide-login.php', 'rocket_activate_wps_hide_login', 11 ); /** * Remove WPS Hide Login custom url from caching exclusion when deactivating the plugin * * @since 2.11 */ function rocket_deactivate_wps_hide_login() { remove_filter( 'rocket_cache_reject_uri', 'rocket_exlude_wps_hide_login_page' ); // Update .htaccess file rules. flush_rocket_htaccess(); // Update config file. rocket_generate_config_file(); } add_action( 'deactivate_wps-hide-login/wps-hide-login.php', 'rocket_deactivate_wps_hide_login', 11 );