• Resolved dworkoipnet

    (@dworkoipnet)


    I have a customer CPT with an “Active” or “Blocked” flag. When the customer emails a post, I get this flag during postie_post_before. Is there are way to prevent the post from being posted or updated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    What is a customer CPT? Do you have a plugin that is adding additional features?

    Thread Starter dworkoipnet

    (@dworkoipnet)

    Sorry I wasn’t clear. “customer Custom Post Type”. I have a PHP function that uses the “from” email address to retrieve the customer’s record, one field of which is status “Active” or “Blocked”. This function is called in postie_post_before. These customers aren’t technically WordPress Users, although that would be a possibility. If we have determined that the email address sends spam to our IMAP inbox, we mark the customer “Blocked” so we would NOT post their email – we’d also like to delete the email as well.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for the explanation.

    If you return null from the postie_post_before function, the email will not be posted.

    See https://postieplugin.com/postie_post_before/

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.