Last active
April 17, 2020 08:20
-
-
Save platoosom/71008f635392fd7281581ad852fedf0f to your computer and use it in GitHub Desktop.
Wordpress insert data into custom database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Insert LinkUrl to wp_imported_articles table | |
* | |
* @param $LinkUrl | |
* @return int | |
*/ | |
function topgear_save_LinkUrl_todatabase($LinkUrl) | |
{ | |
global $wpdb; | |
$success = $wpdb->insert("{$wpdb->base_prefix}imported_articles", array( | |
"LinkUrl" => $LinkUrl | |
)); | |
return $success; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment