Skip to content

Instantly share code, notes, and snippets.

@platoosom
Last active April 17, 2020 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save platoosom/71008f635392fd7281581ad852fedf0f to your computer and use it in GitHub Desktop.
Save platoosom/71008f635392fd7281581ad852fedf0f to your computer and use it in GitHub Desktop.
Wordpress insert data into custom database
/**
* 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