Answers for "wordpress query for fetch data from option table"

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 query for fetch data from option table"

Browse Popular Code Answers by Language