monsterinsights_hook_callback

Hook Callback.

Description

monsterinsights_hook_callback( (array) $args ); 

Adds a do_action() hook in place of the field

Parameters (1)

0. $args (array)
Arguments passed by the setting

Usage

  1. if ( !function_exists( 'monsterinsights_hook_callback' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/admin/settings/settings-api.php'; 
  3.  
  4. // Arguments passed by the setting 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = monsterinsights_hook_callback($args); 
  9.  

Defined (1)

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

/includes/admin/settings/settings-api.php  
  1. function monsterinsights_hook_callback( $args ) { 
  2. do_action( 'monsterinsights_' . $args['id'], $args ); 
  3. return '';