Closed tyrann0us closed 5 years ago
Please open a new issue to suggest additional examples of existing usage. — Post Gallery Filter
The plugin Slick Slider (https://github.com/tyrann0us/slick-slider) uses the post_gallery filter to turn native galleries into sliders: https://github.com/tyrann0us/slick-slider/blob/761477365a31a2947f65dd19e8ffbc818c0815d9/inc/class-output.php#L39-L47
post_gallery
Because of the missing filter the plugin ~does not work with Gutenberg~ cannot simply re-use it for websites that use the Block Editor, but the code has to be rewritten to use register_block_type()'s render_callback.
register_block_type()
render_callback
Disclaimer: I'm the author of this plugin.
Thanks for the report, @tyrann0us! Want to submit a pull request against the README with your example?
See #19.
The plugin Slick Slider (https://github.com/tyrann0us/slick-slider) uses the
post_gallery
filter to turn native galleries into sliders: https://github.com/tyrann0us/slick-slider/blob/761477365a31a2947f65dd19e8ffbc818c0815d9/inc/class-output.php#L39-L47Because of the missing filter the plugin ~does not work with Gutenberg~ cannot simply re-use it for websites that use the Block Editor, but the code has to be rewritten to use
register_block_type()
'srender_callback
.Disclaimer: I'm the author of this plugin.