Answers for "wp database functions"

PHP
1

wordpress wpdb

<?php

if ( ! defined('ABSPATH') ) {
    /** Set up WordPress environment */
    require_once( dirname( __FILE__ ) . '/wp-load.php' );
}

global $wpdb;
$results = $wpdb->get_results( "SELECT * FROM table_bame", OBJECT );

print_r($results);
Posted by: Guest on July-01-2020

Code answers related to "wp database functions"

Browse Popular Code Answers by Language