Pass post ID to autoremove_attachments_allowed filter
-
It would be nice to pass the
$post_id
variable in the'autoremove_attachments_allowed'
filter. That way we could easily add conditions like enabling it only for some CPTs.$allowed_to_remove = apply_filters( 'autoremove_attachments_allowed', true, $post_id );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.