Skip to content

Instantly share code, notes, and snippets.

View ariffsetiawan's full-sized avatar
🏠
Working from home

Arif Setiawan ariffsetiawan

🏠
Working from home
View GitHub Profile
<?php
include("wp-config.php");
$conn = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
if (!$conn) { die('Could not connect: ' . mysqli_error()); }
$result = mysqli_query($conn, "SELECT term_taxonomy_id FROM ".$table_prefix."term_taxonomy");
while ($row = mysqli_fetch_array($result)) {
$term_taxonomy_id = $row['term_taxonomy_id'];
echo "term_taxonomy_id: ".$term_taxonomy_id." count = ";