Description
The “xclusive_gallery_atts” filter allows to modify the default gallery settings. Version 1.1.0+.
A plugin (or theme) can add a filter with the code:
<?php add_filter( 'xclusive_gallery_atts', 'filter_function_name' ); ?>
The hook is located in the _inc/hooks.php file.
Example
// apply filter function filter_xclusive_gallery_atts( $atts, $default ) { return array( 'captiontag' => 'div' 'itemtag' => 'li' 'icontag' => 'span' ); } add_filter('xclusive_gallery_atts', 'filter_xclusive_gallery_atts', 20, 2);
Note: $atts is a array, $atts is an array.
Leave a Reply