Hi, I need to use the wpdatatable hooks and I couldn't get it to work. Please I need an example since I did not find information on the net that will help me. I attach images of the code that I am using and the error that I get.
wpdatatables_filter_int_cell( $formattedValue, $tableId ) This filter is applied to the value of an integer column before it is passed to the front-end.
$formattedValue is the value of the cell.
$tableId is the table identifier from the MySQL table (wp_wpdatatables).
Let me know if that helped,
if not we will try to give you additional advice, but we are limited with our support for hooks.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
We could ask our developers to see if they can provide additional advice,
but if you could elaborate a bit more about what you are trying to achieve with this hook?
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
-
Thank you for the clarification, it seems that now i can understand the goal.
You are trying to use hooks in order to create a possible filtering selection,
to select "greater than" and "less than" as filtering options?
to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
-
If you have coding skills and wish to try to make a custom solution now,
Hi, I need to use the wpdatatable hooks and I couldn't get it to work. Please I need an example since I did not find information on the net that will help me. I attach images of the code that I am using and the error that I get.
Regards
Attached files: img_2.png
img_3.png
Hi, Angel
Sorry for the delay
If i am seeing your screenshot correctly, you tried to add this filter 'wpdatatables_filter_int_cell'
to a PhP function, right?
Here is the explanation from our Hooks Documentation for that filter :
wpdatatables_filter_int_cell( $formattedValue, $tableId )
This filter is applied to the value of an integer column before it is passed to the front-end.
$formattedValue is the value of the cell.
$tableId is the table identifier from the MySQL table (wp_wpdatatables).
Let me know if that helped,
if not we will try to give you additional advice, but we are limited with our support for hooks.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
We could ask our developers to see if they can provide additional advice,
but if you could elaborate a bit more about what you are trying to achieve with this hook?
Thank you
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
Hi.
We need to add the "greater than" and "less than" options. We want to do it from the hooks.
Is it possible to do this?
Regards
Attached files: Selección_701.png
Hi, Angel
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
-
Thank you for the clarification, it seems that now i can understand the goal.
You are trying to use hooks in order to create a possible filtering selection,
to select "greater than" and "less than" as filtering options?
-
At the moment, we only have "greater than" and "less than" available for Conditional rules as Conditional Formatting of the columns;
but for making them available as filters, I'm sorry to disappoint you, but
at this time, we don't have any built-in solution to achieve this.
You can suggest it to our developers - they will do their best to make a solution in the future.
Please feel free to search on our suggestions page,
to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
-
If you have coding skills and wish to try to make a custom solution now,
you can check out our available hooks for Developers on this documentation and see if you can find any hook that might help.
Please be advised that custom solutions with hooks are not included in our support.
You can also research resources such as Stack Overflow to see if any other user perhaps found a workaround.
( We do like to give examples for certain solutions, but for this use-case, we, unfortunately, don't have anything yet)
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