I want to use the sum-shortcode in a calclation. How to strip the number form the shortcode? The shortcode contains lots of html, blanks, and LFs. Is there a function available?.
The whole shortcode is based and defined in that file. There you can find the php functions where you can see what is returned from HTML. You can remove the additional HTML, and whatever you'd like to do with it.
I want to use the sum-shortcode in a calclation. How to strip the number form the shortcode? The shortcode contains lots of html, blanks, and LFs. Is there a function available?.
Hello gottfried_s.
Unfortunately, there is no function available for this, but I can suggest modifying this file:
wp-content/plugins/wpdatatables/templates/frontend/aggregate_functions.inc.php
The whole shortcode is based and defined in that file. There you can find the php functions where you can see what is returned from HTML. You can remove the additional HTML, and whatever you'd like to do with it.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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