wpseek.com
WordPress开发者和主题制作者的搜索引擎



gallery_style › WordPress过滤钩子

Since7.0.0
已弃用n/a
› apply_filters( 'gallery_style', $gallery_style . $gallery_div )
参数:
  • () gallery_style Default CSS styles and opening HTML div container for the gallery shortcode output.
    Required: Yes
定义在:
文档:

Filters the gallery shortcode's default CSS styles and opening HTML div container.

To remove the CSS entirely, use the `use_default_gallery_style` filter instead: add_filter( 'use_default_gallery_style', '__return_false' );




源码

$output = apply_filters( 'gallery_style', $gallery_style . $gallery_div );