tcm_cards_meta_data
The Twitter Cards Meta tcm cards meta data hook.
Description
Parameters (1)
- 0. $cards_meta_data (unknown)
- The cards meta data.
Usage
- To run the hook, copy the example below.
- $cards_meta_data = apply_filters( 'tcm_cards_meta_data', $cards_meta_data );
- if ( !empty( $cards_meta_data ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the tcm_cards_meta_data callback
- function filter_tcm_cards_meta_data( $cards_meta_data ) {
- // make filter magic happen here...
- return $cards_meta_data;
- };
- // add the filter
- add_filter( 'tcm_cards_meta_data', 'filter_tcm_cards_meta_data', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- $cards_meta_data = apply_filters( 'tcm_cards_meta_data', $cards_meta_data);
- $cards_meta_data = apply_filters( 'tcm_cards_meta_data', $cards_meta_data);