The data pulled from the database creates a table using a query similar to this:
SELECT * FROM table WHERE value_x = %VAR1%
After that, you can use a hook for dynamic placeholders (place it in functions.php of your theme, or your child theme):
function updateVAR1($tableID){
global $wdtVar1;
//check is set GET parametar value_x
if(isset($_GET['value_x'])){
//get value from form field
$wdtVar1 = $_GET['value_x'];
}
}
add_action('wpdatatables_before_get_table_metadata', 'updateVAR1');
Is it possible to provide placeholder values via the url?
Hello Gary
Supposedly, your URL is https://yourwebsite.com/?value_x=123
The data pulled from the database creates a table using a query similar to this:
After that, you can use a hook for dynamic placeholders (place it in functions.php of your theme, or your child theme):
I hope this helps.
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