Enhancement: Filter for final output
-
Hello Justin,
would you consider adding a filter for the final output of the gallery? Basically inpublic function gallery_shortcode( $output, $attr ) {
add this add the very end (please check the syntax for args as I am not 100% sure there ??
/* Filter & Return out very nice, valid HTML gallery. */ $output = "\n\t\t\t" . sprintf( '<div %s>', $gallery_attr ) . $output . "\n\t\t\t</div><!-- .gallery -->\n"; /* Apply filter to the output */ $output = apply_filters( 'cleaner_gallery_output', $output, $this->args ); // not sure if that is the right syntax for the args return $output; }
Thanks,
Sascha
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Enhancement: Filter for final output’ is closed to new replies.