insert repository maps on javascript wordpress object
This commit is contained in:
parent
b40fd2e6c0
commit
59fdea3d5a
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue