Shortcode Filter from GET parameter

This Extension of the Row Filtering Extension adds a new Shortcode that allows the filter for the Row Filtering Extension to come from a GET parameter in the URL, instead of having it hardcoded in the Shortcode.

To use it, just install and activate both the Row Filtering Extension and this Extension, just like a regular WordPress plugin. You can use a new Shortcode like

[table_filter id=123 /]

which will automatically filter and return table 123, filtered for the URL GET parameter table_filter, like in the URL

http://www.example.com/?table_filter=myfilterword

This would be the same as using the Shortcode

 

with just the Row Filtering Extension.
All other parameters for the Row Filtering Extension can still be used. This Extension will do some input sanitization to the table_filter parameter though, so that only letters and numbers are allowed in it.

If this Extension is helpful for you, please consider supporting further TablePress development with a donation. Thank you!

Top