elementor / elementor/activity-log
PostType exclude filter
Open
enhancement
- Dominant language
- PHP
- Stars
- 188
- Forks
- 55
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 12
Description
hey,
really great plugin, it would be to nice filter custom post types in `hooks_transition_post_status` and `hooks_delete_post`. Right now, you're testing for the `nav_menu_item` to ignore, i would change this to:
```
$excludes = apply_filters( 'aal_hooks_post_status_excludes', [ 'nav_menu_item'] );
// Skip for menu items.
if ( in_array( get_post_type( $post->ID ), $excludes ) )
return;
```
(alternativ you could create an options section to enable/disable the post types for logging.)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.