📜  wordpress 执行查询 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:51.894000             🧑  作者: Mango

代码示例1
global $wpdb;    
$result = $wpdb->get_results( "SELECT * FROM wp_usermeta WHERE meta_key = 'points' AND user_id = '1'");
print_r($result);