How to exclude specific entries
-
Hello,
I like your plugin, it’s very useful, but I have a small issue I’d like to query.
I also use this plugin: https://en-gb.www.ads-software.com/plugins/post-smtp/
I have it’s email log enabled, and it has a limit of x entries. Everytime a form is submitted the email is passed via the SMTP plugin. An entry is created in it’s log and while the email log is full an entry is deleted at the same time. Each of these is logged by your plugin. I don’t mind the created entry as that shows me the form was submitted and an email generated etc, however, I would like to exclude the deleted entry from your plugin.
I’ve pasted some of the meta data below incase that can be used to filter it out?
Key Value id 18083 logger SimplePostLogger level info date 2023-06-07 11:28:50 message Deleted {post_type} "{post_title}" initiator wp_user context_message_key post_deleted post_id 2949 post_type postman_sent_mail post_title Wordfence activity for Monday, 29th of November, 2021 on domain.com _message_key post_deleted _user_id # _user_login name _user_email ##@###.co.uk _server_remote_addr xxx.xxx.xxx.xxx _server_http_referer #
I would think post type and message key would be suitable to exclude these if you could assist me with a function or filter please?
Thanks,
- The topic ‘How to exclude specific entries’ is closed to new replies.