Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding the default media observer. #3763

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hailwood
Copy link

@hailwood hailwood commented Jan 9, 2025

Adds a configuration option to register a custom media observer for when you might want to override the default handling for deleting a media etc.

This is fully backwards compatible assuming someone hasn't adding a custom media_observer key to their media-library.php config file (unlikely).

I considered adding tests, but there's not really anything package specific to test with this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant