get_skinmeta

The BuddyPress cover get skinmeta function.

Description

get_skinmeta( $field, $data ); 

Parameters (2)

0. $field
The field.
1. $data
The data.

Usage

  1. if ( !function_exists( 'get_skinmeta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-cover/bp-cover-admin.php'; 
  3.  
  4. // The field. 
  5. $field = null; 
  6.  
  7. // The data. 
  8. $data = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = get_skinmeta($field, $data); 
  12.  

Defined (1)

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

/bp-cover-admin.php  
  1. function get_skinmeta($field, $data) { 
  2. if (preg_match("|$field:(.*)|i", $data, $match)) { 
  3. $match = $match[1]; 
  4. return $match;