grofiles_hovercards_data

Keyed JSON object containing all profile data provided by registered callbacks.

Description

(array() grofiles_hovercards_data( (int|strung) $author ); 

Returns (array()

data_key => data, ... )

Parameters (1)

0. $author (int|strung)
User ID or email address

Usage

  1. if ( !function_exists( 'grofiles_hovercards_data' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/gravatar-hovercards.php'; 
  3.  
  4. // User ID or email address 
  5. $author = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = grofiles_hovercards_data($author); 
  9.  

Defined (1)

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

/modules/gravatar-hovercards.php  
  1. function grofiles_hovercards_data( $author ) { 
  2. $r = array(); 
  3. foreach ( grofiles_hovercards_data_callbacks() as $key => $callback ) { 
  4. if ( !is_callable( $callback ) ) 
  5. continue; 
  6. $data = call_user_func( $callback, $author, $key ); 
  7. if ( !is_null( $data ) ) 
  8. $r[$key] = $data; 
  9.  
  10. return $r;