for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carbon_Fields\Datastore;
use Carbon_Fields\Field\Field;
/**
* User meta datastore class.
*/
class User_Meta_Datastore extends Meta_Datastore {
* Retrieve the type of meta data.
*
* @return string
public function get_meta_type() {
return 'user';
}
* Retrieve the meta table name to query.
public function get_table_name() {
global $wpdb;
return $wpdb->usermeta;
* Retrieve the meta table field name to query by.
public function get_table_field_name() {
return 'user_id';