Answers for "wordpress format sql information"

PHP
0

wp do sql query from function

<?php
// 2nd Method - Utilizing the $GLOBALS superglobal. Does not require global keyword ( but may not be best practice )
$results = $GLOBALS['wpdb']->get_results( "SELECT * FROM {$wpdb->prefix}options WHERE option_id = 1", OBJECT );
Posted by: Guest on November-30-2020

Code answers related to "wordpress format sql information"

Browse Popular Code Answers by Language