plugin update (wp-media-folder)

This commit is contained in:
Tony Volpe
2024-09-05 11:05:17 -04:00
parent 50cd64dd3d
commit daa614524b
20 changed files with 16137 additions and 73 deletions

View File

@@ -340,14 +340,16 @@ var wpmfFoldersModule = void 0,
}
};
// Create an observer instance linked to the callback function
const observer = new MutationObserver(callback);
if (targetNode){
// Create an observer instance linked to the callback function
const observer = new MutationObserver(callback);
// Start observing the target node for configured mutations
observer.observe(targetNode, config);
// Start observing the target node for configured mutations
observer.observe(targetNode, config);
// Later, you can stop observing
// observer.disconnect();
// Later, you can stop observing
// observer.disconnect();
}
// Add the creation gallery from folder button