Our suggestion is to hide that buttons using CSS rather than modifying and changing the plugin code. If you need assistance with hiding that buttons let me know so I can help you out.
Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.
Also point me to the table ID where I can test it. Thank you.
hi, i can't do it now, but I see in documentation yhis :
How to hide one of the Table Tools buttons?
For this you would need to open the file: source/class.wpdatatable.php, and find this block: if($this->tableToolsEnabled()){ $obj->dataTableParams->oTableTools = array( ' sSwfPath' => WDT_JS_PATH.'jquery- datatables/media/swf/copy_cvs_xls_pdf.swf', 'aButtons' => array( array('sExtends' => 'xls', 'sFileName' => '*.xls'), array('sExtends' => 'print') ) ); if(!$this->isEditable()){ $obj->dataTableParams->oTableTools['aButtons'][] = 'csv'; $obj->dataTableParams->oTableTools['aButtons'][] = 'pdf'; $obj->dataTableParams->oTableTools['aButtons'][] = 'copy'; } }
To remove “Copy” button remove this line:
in class.wpdatatable.php i can't find this section, where is it?
where i can go to remove the delete and new button?
To hide new and delete buttons you can add this CSS on Custom CSS field on wpDataTables settings page or directly on the page between <style></style> tags:
I, i'd like remove same fuction on editable table , I want delete 'new' and 'delete' option for same table
i'm trying to modify the file class.wpdatatable.php but i don't find the line obj to remove
thanks
Hi nicola1966,
Thank you for your purchase.
Our suggestion is to hide that buttons using CSS rather than modifying and changing the plugin code.
If you need assistance with hiding that buttons let me know so I can help you out.
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
please...send me more details about it
thanksHi nicola1966,
Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.
Also point me to the table ID where I can test it.
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, i can't do it now, but I see in documentation yhis :
How to hide one of the Table Tools buttons?
For this you would need to open the file: source/class.wpdatatable.php, and find this block:
if($this->tableToolsEnabled()){
$obj->dataTableParams->oTableTools = array(
' sSwfPath' => WDT_JS_PATH.'jquery- datatables/media/swf/copy_cvs_xls_pdf.swf',
'aButtons' => array(
array('sExtends' => 'xls', 'sFileName' => '*.xls'),
array('sExtends' => 'print')
)
);
if(!$this->isEditable()){
$obj->dataTableParams->oTableTools['aButtons'][] = 'csv';
$obj->dataTableParams->oTableTools['aButtons'][] = 'pdf';
$obj->dataTableParams->oTableTools['aButtons'][] = 'copy';
}
}
To remove “Copy” button remove this line:
in class.wpdatatable.php i can't find this section, where is it?where i can go to remove the delete and new button?
thanksHI nicola1966
To hide new and delete buttons you can add this CSS on Custom CSS field on wpDataTables settings page or directly on the page between <style></style> tags:
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
very good, it's working weel in both mode
uou can close the ticket
thank you very much
Hi nicola1966,
You are welcome.
If you like our plugin and support please rate our plugin at CodeCanyon on this link. It means a lot to us. Thanks.
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