ted_filter_oembed_fetch_url

Filter the request URL to also include the $lang parameter.

Description

ted_filter_oembed_fetch_url( $provider, $url, $args ); 

Parameters (3)

0. $provider
The provider.
1. $url
The url.
2. $args
The args.

Usage

  1. if ( !function_exists( 'ted_filter_oembed_fetch_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/ted.php'; 
  3.  
  4. // The provider. 
  5. $provider = null; 
  6.  
  7. // The url. 
  8. $url = null; 
  9.  
  10. // The args. 
  11. $args = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = ted_filter_oembed_fetch_url($provider, $url, $args); 
  15.  

Defined (1)

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

/modules/shortcodes/ted.php  
  1. function ted_filter_oembed_fetch_url( $provider, $url, $args ) { 
  2. return add_query_arg( 'lang', $args['lang'], $provider );