insert repository maps on javascript wordpress object

This commit is contained in:
eduardohumberto 2018-03-21 14:11:24 -03:00
parent b40fd2e6c0
commit 59fdea3d5a
1 changed files with 8 additions and 1 deletions

View File

@ -127,6 +127,13 @@ class Admin {
'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 );