fix: declare variable $cpts

This commit is contained in:
vnmedeiros 2023-02-24 10:21:25 -03:00
parent 37b2c3a845
commit a9ad7957c0
1 changed files with 1 additions and 0 deletions

View File

@ -219,6 +219,7 @@ function tainacan_blocks_get_plugin_js_settings(){
$Tainacan_Collections = \Tainacan\Repositories\Collections::get_instance();
$collections = $Tainacan_Collections->fetch( [], 'OBJECT' );
$cpts = [];
foreach ( $collections as $col ) {
$cpts[$col->get_db_identifier()] = $col->get_name();
}