post_gallery钩子是Wordpress钩子,过滤器挂钩:过滤默认的库快捷方式输出。
apply_filters( ‘post_gallery’, string $output, array $attr, int $instance )
说明(Description)
如果过滤后的输出不是空的,将使用它而不是生成默认的库模板。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$output | (string) | 画廊输出。默认为空。 |
$attr | (array) | 库快捷方式的属性。 |
$instance | (int) | 此库快捷方式实例的唯一数字标识。 |
源码(Source)
//暂无
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.2.0 | wp-includes/media.php:1889 | 1 | 0 |