Use TablePress_Admin_Controller in another plugin
-
Dear,
I’m trying to write a plugin that uses TablePress to show data (scoring) generated from a software.From my software I can upload an HTML file to a server, my idea is to make an admin_post_nopriv target that receive as parameter the filename and the tableid to force an update of the tablepress that has the result stored inside.
To do this I would rely on TablePress_Admin_Controller extending it, but I don’t know how load it inside my plugin.
If I simply try to extend TablePress_Admin_Controller I got an error, even if the class extension is made after plugins are loaded or with wp_loaded.
add_action('plugins_loaded', function () { require_once('RegattaImporter.php'); });
Inside RegattaImporter.php there is the class extension.
Can you help me?
Thanks
- The topic ‘Use TablePress_Admin_Controller in another plugin’ is closed to new replies.