Hello, I would like to be able to use your wpDataTable plugin with json authentication could you tell me which files I would need to edit within the plugin to make this work? It is basic authentication I am using so currently when I call the url I use the following php:
Hello, I would like to be able to use your wpDataTable plugin with json authentication could you tell me which files I would need to edit within the plugin to make this work? It is basic authentication I am using so currently when I call the url I use the following php:
$jsonurl = 'https://thisistheurlforthejson';
$user = 'username';
$password = 'password';
$headers = array( 'Authorization' => 'Basic ' . base64_encode( "$username:$password" ) )
$jsonAuthenticate = wp_remote_get( $jsonurl, array( 'headers' => $headers, 'sslverify' => false));
It will always be the same username and password so I would only need to edit the json call in the backend.
Thanks
Rachel
Hi Rachel,
You can find method responsible for getting data from JSON in
..wp-content/plugins/wpdatatables/source/class.wpdatatable.php
method name is jsonBasedConstruct.
To be able to help you more with this issue please open a ticket in corresponding section.
Rachel, did you ever figure this out?
Hello Daniel.
I'm not sure that this is what you're looking for, but please take a look at this ticket:
https://tmsplugins.ticksy.com/ticket/1901173
It may help with what you're after.
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