yoast_ga_self_deactivate_spl
Throw an error if the PHP SPL extension is disabled (prevent white screens) and self-deactivate plugin.
Description
yoast_ga_self_deactivate_spl();
Usage
if ( !function_exists( 'yoast_ga_self_deactivate_spl' ) ) { require_once ABSPATH . PLUGINDIR . 'google-analytics-by-yoast/googleanalytics.php'; } // NOTICE! Understand what this does before running. $result = yoast_ga_self_deactivate_spl();
Defined (1)
The function is defined in the following location(s).
- /googleanalytics.php
- function yoast_ga_self_deactivate_spl() {
- if ( is_admin() ) {
- esc_html__( 'The Standard PHP Library (SPL) extension seem to be unavailable. Please ask your web host to enable it.', 'google-analytics-for-wordpress' )
- );
- }
- }