getOEmbedCacheKeyCustomParameters() публичный статический Метод

Generate a unique string representing oEmbed result customizations set by shortcode parameters
С версии: 1.0.0
public static getOEmbedCacheKeyCustomParameters ( array $query_parameters ) : string
$query_parameters array associative array of query parameters sent to the oEmbed endpoint { @type string query parameter name @type string|bool query parameter value }
Результат string cache key component
Пример #1
0
 /**
  * Test building a unique cache key component for shortcode customizations
  *
  * @since 1.0.0
  *
  * @covers ::getOEmbedCacheKeyCustomParameters
  * @small
  *
  * @return void
  */
 public function testGetOEmbedCacheKeyCustomParameters()
 {
     $this->assertEquals('', \Twitter\WordPress\Shortcodes\EmbeddedTweetVideo::getOEmbedCacheKeyCustomParameters(array('hide_tweet' => true)), 'Failed to set an empty cache modifier key');
 }
Пример #2
0
 /**
  * Test building a unique cache key component for shortcode customizations
  *
  * @since 1.0.0
  *
  * @covers ::getOEmbedCacheKeyCustomParameters
  * @small
  *
  * @return void
  */
 public function testGetOEmbedCacheKeyCustomParameters()
 {
     $this->assertEquals('h', \Twitter\WordPress\Shortcodes\EmbeddedTweetVideo::getOEmbedCacheKeyCustomParameters(array('hide_tweet' => true)), 'Failed to set a unique cache key for the hide Tweet customization');
 }