pre_oembed_result

最后更新于:2021-11-27 19:30:13

apply_filters( ‘pre_oembed_result’, null|string $result, string $url, string|array $args )

Filters the oEmbed result before any HTTP requests are made.

参数

$result

(null|string)
The UNSANITIZED (and potentially unsafe) HTML that should be used to embed. Default null to continue retrieving the result.

$url

(string)
The URL to the content that should be attempted to be embedded.

$args

(string|array)
Additional arguments for retrieving embed HTML. See gc_oembed_get() for accepted arguments. Default empty.

源文件

文件: gc-includes/class-gc-oembed.php

View on Trac