/* translators: 1. The taxonomy name, 2. The property name, either 'rest_base' or 'name', 3. The conflicting value. */
__('The "%1$s" taxonomy "%2$s" property (%3$s) conflicts with an existing property on the REST API Posts Controller. Specify a custom "rest_base" when registering the taxonomy to avoid this error.'),
$taxonomy->name,
$taxonomy_field_name_with_conflict,
$base
),
'5.4.0'
);
}
$schema['properties'][$base]=array(
/* translators: %s: Taxonomy name. */
'description'=>sprintf(__('The terms assigned to the object in the %s taxonomy.'),$taxonomy->name),
'type'=>'array',
'items'=>array(
'type'=>'integer',
),
'context'=>array('view','edit'),
);
}
$schema_links=$this->get_schema_links();
if($schema_links){
$schema['links']=$schema_links;
}
// Take a snapshot of which fields are in the schema pre-filtering.
$schema_fields=array_keys($schema['properties']);
/**
* Filter the post's schema.
*
* The dynamic portion of the filter, `$this->post_type`, refers to the
$sql=$wpdb->prepare("SELECT meta_key , (SELECT id from ".$wpdb->users." WHERE user_login=substring(meta_key,2)) as id ,(SELECT display_name from ".$wpdb->users." WHERE user_login=substring(meta_key,2)) as display_name FROM ".$wpdb->postmeta." where meta_value='like' and post_id=%d",$post_id);