Demos and Tutorials ArticlesSchool Administration System Bike Administration System Use WP Data Access classes in your own PHP code Doc navigation← ShortcodesSource Code → Was this article helpful to you? Yes No 7 Replies to “Demos and Tutorials” Hello Peter, You have a public hook $this->loader->add_action( ‘wp_ajax_wpda_datatables’, $plugin_datatables, ‘get_data’ ); Is there easy way to override get_data outside your plugin in my plugin for example,. Do I have to recreate all of this: use WPDataAccess\Data_Dictionary\WPDA_Dictionary_Exist; use WPDataAccess\Data_Dictionary\WPDA_List_Columns_Cache; use WPDataAccess\Plugin_Table_Models\WPDA_Publisher_Model; use WPDataAccess\Plugin_Table_Models\WPDA_Media_Model; use WPDataAccess\WPDA; Can you give me some tips? Thank you, Anatoly Reply Hi Anatoly, Interesting question! Yes, you can… First make sure WP Data Access is loaded. You can use the plugins_loaded hook: add_action(‘plugins_loaded’, ‘your-function-goes-here’); This ensures you have access to the WP Data Access namespaces and classes. Next step is to create your own sub class for WPDA_Data_Tables and overwrite method get_data. Finally you have to create your own public hook. The WP Data Access hook uses class WPDA_Data_Tables. You have to make sure your hook calls your class. My advise would be to create a sub class without changing any code first, add your own hook and test it. Ones you have that working you can start rewriting the get_data method. I hope this helps! Let me know if you need assistance. It would be great if you could share your code ones it works. Best regards, Peter Reply Hello Peter, I know very little about SQL databases. I am trying to export certain taxonomies called Locations and bulk add thousand of locations back into the wordpress site. I have searched high and low and I have not found anything plugin that would suffice. I think your plugin would do the job, however, I have no idea how to make this happen or even where to start. If you are feeling generous and can assist in pointing me in the right direction, that would be really handy. Best regards, Gerard Reply Hi Gerard, Let’s presume your table is named Locations. To export your table: – Login the WordPress dashboard of your source machine – Navigate to WP Data Access main menu – Search table Location in the Data Explorer – If you hover over the table name you’ll see a link Manage – Click on that link – Click on button EXPORT (select SQL and disable all checkboxes) Your export is written to a SQL file. To import the file on the target machine: – Login the WordPress dashboard of your target machine – Navigate to WP Data Access main menu – Click on button Import data/Execute script(s) – Select the export file you have previously created – Uncheck hide errors – Click on button Import file/Execute script(s) – Check your errors if there are any Your table should now be on the target machine. Hope this helps Gerard! 🙂 Best regards, Peter Reply hi, how about styling via css? and can i control what role can add, edit, view? how about linking with post/pages if necessary? Reply Hi Pablo, I’m on holiday until january 2nd. I’ll answer your question after my holiday. Hope you don’t mind! Best regards, Peter Reply Hi Pablo, Sorry for letting you wait for so long! I was on holiday. The demo apps are created with the Data Projects tool. You can add an app to your website with a shortcode. How to style the output is documented here: https://wpdataaccess.com/docs/documentation/shortcodes/styling-wpdadiehard-pages/ You can also use a Data Project directly from the WordPress dashboard, but there is no styling supported within the dashboard yet. Another shortcode you can use is wpdataaccess, which allows you to put interactive read-only tables to your website. The Data Publisher can help you to define the look and feel of the table. You can use shortcode wpdataaccess with or without the Data Publisher. How to style the output is documented here: https://wpdataaccess.com/docs/documentation/shortcodes/styling-wpdataaccess-pages/ Which users are allow to view, update, delete and insert data can be defined in the Data Projects tool. This is described here: https://wpdataaccess.com/docs/documentation/data-projects/managing-roles-and-user-access/ Sorry, I’m not sure what you mean with linking to post or pages. Can you add some more details? Best regards, Peter Reply Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment Name * Email * Website Save my name, email, and website in this browser for the next time I comment.