add default options on metadata User

This commit is contained in:
vnmedeiros 2020-04-21 17:30:05 -03:00
parent 891ae5bca5
commit 678789be7f
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ class User extends Metadata_Type {
$this->set_form_component('tainacan-form-user');
$this->set_name( __('User', 'tainacan') );
$this->set_description( __('A registered user on WordPress', 'tainacan') );
$this->set_default_options([
'default_author' => 'no'
]);
$this->set_preview_template('
<div class="taginput control is-expanded has-selected">
<div class="taginput-container is-small is-focusable">