Media Cleaner doesn’t detect usage of attachments on ACF options pages
-
Basically the title says it all – I have a few ACF options pages where I also have some image fields. These images are detected as “not used” by Media Cleaner. I can of course make use of the filter
wpmc_check_media
and returntrue
for these images, but still thought it would be worth informing you about the issue.Should you decide that you want to support this: You can get information about all registered options pages like this:
add_action('init', function() { $options_pages = acf_get_options_pages(); // do your magic with the information }, PHP_INT_MAX); // run at the very end of the 'init' hook
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Media Cleaner doesn’t detect usage of attachments on ACF options pages’ is closed to new replies.