tcm_cards_meta_data

The Twitter Cards Meta tcm cards meta data hook.

Description

apply_filters( 'tcm_cards_meta_data', (unknown) $cards_meta_data ); 

Parameters (1)

0. $cards_meta_data (unknown)
The cards meta data.

Usage

To run the hook, copy the example below.
  1. $cards_meta_data = apply_filters( 'tcm_cards_meta_data', $cards_meta_data ); 
  2.  
  3. if ( !empty( $cards_meta_data ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the tcm_cards_meta_data callback 
  2. function filter_tcm_cards_meta_data( $cards_meta_data ) { 
  3. // make filter magic happen here... 
  4. return $cards_meta_data
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'tcm_cards_meta_data', 'filter_tcm_cards_meta_data', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'tcm_cards_meta_data', 'filter_tcm_cards_meta_data', 10, 1 ); 

Defined (2)

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

/twitter-cards-meta.php  
  1. $cards_meta_data = apply_filters( 'tcm_cards_meta_data', $cards_meta_data); 
  1. $cards_meta_data = apply_filters( 'tcm_cards_meta_data', $cards_meta_data);