fix: declare variable $cpts
This commit is contained in:
parent
37b2c3a845
commit
a9ad7957c0
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue