Do I need to use wpdb prepare before wpdb->insert?
If I am inserting values into a wordpress table using wpdb->insert, do I need to "clean" my data before inserting it or does this method (wpdb->insert) do that for me?
|
Do I need to use wpdb prepare before wpdb->insert? If I am inserting values into a wordpress table using wpdb->insert, do I need to "clean" my data before inserting it or does this method (wpdb->insert) do that for me? |
|||
|
|
|
No, you shouldn't prepare or escape the data, this is done for you by the From the wpdb class reference:
If, however, you were writing your own SQL rather than using the |
|||||
|