elementor / elementor/activity-log

PostType exclude filter

Open
#132 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.