stats_convert_post_title

Stats Convert Post Title Matches.

Description

stats_convert_post_title( $matches ); 

Parameters (1)

0. $matches
The matches.

Usage

  1. if ( !function_exists( 'stats_convert_post_title' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/stats.php'; 
  3.  
  4. // The matches. 
  5. $matches = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = stats_convert_post_title($matches); 
  9.  

Defined (1)

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

/modules/stats.php  
  1. function stats_convert_post_title( $matches ) { 
  2. global $stats_posts; 
  3. $post_id = $matches[1]; 
  4. if ( isset( $stats_posts[$post_id] ) ) 
  5. return '<a href="' . get_permalink( $post_id ) . '" target="_blank">' . get_the_title( $post_id ) . '</a>'; 
  6. return $matches[0];