Title: WPDA_Data_Tables::get_data()
Last modified: June 15, 2020

---

# WPDA_Data_Tables::get_data()

 *  Resolved [Kooyaya](https://wordpress.org/support/users/kooyaya/)
 * (@kooyaya)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wpda_data_tablesget_data/)
 * Is it exposed to SQL injection on sql_where in WPDA_Data_Tables::get_data()?
 * I may have very likely missed the protection, but want to raise it to make sure
   it is handled.
 * Thanks,
    Kooyaya

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wpda_data_tablesget_data/#post-12985864)
 * Hi Kooyaya,
 * Protection against SQL injection is covered in class WPDA, static method construct_where_clause.
   This method is called through filter wpda_construct_where_clause to allow plugin
   users to add their own search logic. The documentation can be found here:
    [https://wpdataaccess.com/2020/01/29/filter-wpda-construct-where-clause-to-add-custom-search-behaviour/](https://wpdataaccess.com/2020/01/29/filter-wpda-construct-where-clause-to-add-custom-search-behaviour/)
 * Charles Godwin wrote an extension for an alternative search algerithm which can
   be found here:
    [https://github.com/CharlesGodwin/wpda-cwg-extensions](https://github.com/CharlesGodwin/wpda-cwg-extensions)
 * One small note! The default where is not tested for SQL injection as it is taken
   from your publication settings and cannot be changed by the user.
 * Looks like your making progress! 🙂 Hope this helps…
 * Best regards,
    Peter
 *  Thread Starter [Kooyaya](https://wordpress.org/support/users/kooyaya/)
 * (@kooyaya)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wpda_data_tablesget_data/#post-12990163)
 * Thank you, Peter! This really helps!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WPDA_Data_Tables::get_data()’ is closed to new replies.

 * ![](https://ps.w.org/wp-data-access/assets/icon-256x256.png?rev=3299063)
 * [WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards](https://wordpress.org/plugins/wp-data-access/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-data-access/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-data-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-data-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-data-access/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kooyaya](https://wordpress.org/support/users/kooyaya/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/wpda_data_tablesget_data/#post-12990163)
 * Status: resolved