yoast_ga_self_deactivate_filter_input

Throw an error if the filter extension is disabled (prevent white screens) and self-deactivate plugin.

Description

yoast_ga_self_deactivate_filter_input(); 

Usage

  1. if ( !function_exists( 'yoast_ga_self_deactivate_filter_input' ) ) { 
  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_filter_input(); 
  7.  

Defined (1)

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

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