Closed pbrocks closed 4 years ago
the insert and update methods pass things through the same kind of prepare process
https://github.com/strangerstudios/pmpro-payfast/blob/dev/services/payfast_itn_handler.php#L371-L383
it basically just makes a prepare insert query https://github.com/WordPress/WordPress/blob/master/wp-includes/wp-db.php#L2177-L2180 wp-includes/wp-db.php:2177-2180 ``$sql = "$type INTO$table` ($fields) VALUES ($formats)";
``$sql = "$type INTO
$this->check_current_query = false; return $this->query( $this->prepare( $sql, $values ) );```
WordPress/WordPressAdded by GitHub
there are no filters or anything in there. so the only reason to use insert, update, replace/etc methods is if you like the format for setting the tables/etc or just for readability of the code
the insert and update methods pass things through the same kind of prepare process
https://github.com/strangerstudios/pmpro-payfast/blob/dev/services/payfast_itn_handler.php#L371-L383
it basically just makes a prepare insert query https://github.com/WordPress/WordPress/blob/master/wp-includes/wp-db.php#L2177-L2180 wp-includes/wp-db.php:2177-2180
``$sql = "$type INTO
$table` ($fields) VALUES ($formats)";WordPress/WordPressAdded by GitHub
there are no filters or anything in there. so the only reason to use insert, update, replace/etc methods is if you like the format for setting the tables/etc or just for readability of the code