This is solved — thank you!!
Thank you Aswin — where do I put this snippet? Is it for the functions.php file, or a different themefile?
Best wishes
To add onto this:
Any WordPress page with a wpdatatables shortcode on it cannot be edited on the back-end. When I click “Edit” the page, I get a 404 Not Found error on the page. The table still appears on the front-end, but the page cannot be edited on the back-end (404 Error).
This only happens on pages with wpdatatables code.