I would like to use PHP to alter data for certain columns, but the only options available are by column type (string, int, etc). Could you possible add an arg to the wpdatatables_filter_cell_val filter so it also includes the columnMetadata to help with PHP filtering?
I would like to use PHP to alter data for certain columns, but the only options available are by column type (string, int, etc). Could you possible add an arg to the wpdatatables_filter_cell_val filter so it also includes the columnMetadata to help with PHP filtering?
Example:
wpdatatables_filter_cell_val( $val, $tableId, $columnMetadata )
HI zestsms,
Thank you for your purchase.
Unfortunately the hooks are only accepting the values that are displayed in the documentation.
In your case the only way to add and work with $columnMetadata is to include it and return it in the function that you are writing.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables