polldaddy_link

The Jetpack by WordPress.com polldaddy link function.

Description

polldaddy_link( $content ); 

Parameters (1)

0. $content
The content.

Usage

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

Defined (1)

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

/modules/shortcodes/polldaddy.php  
  1. function polldaddy_link( $content ) { 
  2. return preg_replace( '!(?:\n|\A)http://polldaddy.com/poll/([0-9]+?)/(.+)?(?:\n|\Z)!i', "\n<script type='text/javascript' language='javascript' charset='utf-8' src='//static.polldaddy.com/p/$1.js'></script><noscript> <a href='http://polldaddy.com/poll/$1/'>View Poll</a></noscript>\n", $content );