Description
The “xclusive_get_post_gallery” filter allows to modify the default post gallery display. Version 1.1.0+.
A plugin (or theme) can add a filter with the code:
<?php add_filter( 'xclusive_get_post_gallery', 'filter_function_name' ); ?>
The hook is located in the _inc/custom.php file.
Example
// apply filter function filter_xclusive_get_post_gallery( $gallery, $post, $galleries ) { return $gallery . "<p>additional text for gallery</p>"; } add_filter('xclusive_get_post_gallery', 'filter_xclusive_get_post_gallery', 20, 2);
Note: $gallery is a string, $post is an object, $galleries is an array.
Leave a Reply