Widget_Image_Gallery::get_categories()
Get widget categories.
Description
Retrieve the list of categories the image gallery widget belongs to.
Used to determine where to display the widget in the editor.
Return
(array) Widget categories.
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Source
includes/widgets/image-gallery.php
public function add_lightbox_data_to_image_link( $link_html ) { return preg_replace( '/^<a/', '<a ' . $this->get_render_attribute_string( 'link' ), $link_html ); }