Merge branch 'develop' of https://github.com/tainacan/tainacan into develop

This commit is contained in:
weryques 2018-03-21 14:30:07 -03:00
commit ac968e064d
1 changed files with 8 additions and 1 deletions

View File

@ -126,7 +126,14 @@ class Admin {
'user_prefs' => $prefs,
'base_url' => $TAINACAN_BASE_URL
];
$settings['maps'] = [
'collections' => $Tainacan_Collections->get_map(),
'fields' => $Tainacan_Fields->get_map(),
'filters' => $Tainacan_Filters->get_map(),
'items' => $Tainacan_Items->get_map(),
'taxonomies' => $Tainacan_Taxonomies->get_map(),
];
wp_localize_script( 'tainacan-user-admin', 'tainacan_plugin', $settings );