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

  1. if ( !function_exists( 'yoast_ga_self_deactivate_spl' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-by-monsterinsights/googleanalytics.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = yoast_ga_self_deactivate_spl(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/googleanalytics.php  
  1. function yoast_ga_self_deactivate_spl() { 
  2. if ( is_admin() ) { 
  3. esc_html__( 'The Standard PHP Library (SPL) extension seem to be unavailable. Please ask your web host to enable it.', 'google-analytics-for-wordpress' ) 
  4. );