aioseop_localize_script_data

The All In One SEO Pack aioseop localize script data function.

Description

aioseop_localize_script_data(); 

Usage

  1. if ( !function_exists( 'aioseop_localize_script_data' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/inc/aioseop_functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = aioseop_localize_script_data(); 
  7.  

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_localize_script_data() { 
  2. static $loaded = 0; 
  3. if ( ! $loaded ) { 
  4. $data = apply_filters( 'aioseop_localize_script_data', Array() ); 
  5. wp_localize_script( 'aioseop-module-script', 'aiosp_data', $data ); 
  6. $loaded = 1;