Elektrine lite

← Feed

@matze@dewp.space

Post #2354158

2026-04-15 07:03 UTC

@heybran So my assumption is right. It’s stored as closure. Maybe it works if you store the function in a variable and use this to add and remove the filter. But aside of that, you can only remove closures in filters manually by removing the array item in $wp_filter. In general, using closures as filter callbacks is discouraged for this exact reason.

Replies (0)

No replies.