Home / Wordpress

Wordpress

How to Add JSON Data into WooCommerce WordPress Database from API

WooCommerce

Add products from REST API to WooCommerce, update WordPress database WooCommerce tables with php code Here I have used github countries api to test. In this php code countries name and code is inserted directly into WooCommerce products¬† into WordPress database. <?php /* Template Name: awsapi */   $sl =file_get_contents(‘https://gist.github.com/keeguon/2310008 …

Read More »

How to insert data into WordPress database ?

sql developer network connection could not be established

WordPress has its own database. Sometimes we have to insert data in a custom table. You can create a custom table in WordPress database and can insert data into WordPress database.¬† In this example I have used $wpdb function. Here is simple script to insert data into WordPress database custom …

Read More »