jetpack_twitter_cards_site_tag

This action is documented in modules/sharedaddy/sharing-sources.php.

Description

apply_filters( 'jetpack_twitter_cards_site_tag', (string) $var, (array) $array ); 

Parameters (2)

0. $var (string) => ''
Twitter Username.
1. $array (array) => array()
Array of Open Graph Meta Tags and Twitter Cards tags.

Usage

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

Defined (2)

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

/modules/sharedaddy/sharing-sources.php  
  1. $twitter_site_tag_value = apply_filters( 'jetpack_twitter_cards_site_tag', '', array() ); 
/class.jetpack-twitter-cards.php  
  1. $site_tag = apply_filters( 'jetpack_twitter_cards_site_tag', $site_tag, $og_tags );