{"id":15609378,"date":"2022-05-02T15:02:00","date_gmt":"2022-05-02T15:02:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-creates-wp_posts-entry\/"},"modified":"2022-05-02T15:03:39","modified_gmt":"2022-05-02T15:03:39","slug":"plugin-creates-wp_posts-entry","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-creates-wp_posts-entry\/","title":{"rendered":"Plugin creates wp_posts entry?"},"content":{"rendered":"<p>I&#8217;ve been testing the plug-in, and I&#8217;m finding something strange;  I&#8217;m wondering if it is a bug or a feature (that old MS Windows gag).<\/p>\n<p>I call <code>wp_mail($address, &quot;New article Test #3&quot;, &quot;There&#039;s a new article, and it&#039;s NOTHING about sports.&quot;);<\/code> and then look at the wp_posts table in the database.  Hey!  There&#8217;s a new entry with my email&#8217;s Subject as the post Title and the email&#8217;s Content is the post Content.  FYI, post_status = &#8216;private&#8217;<\/p>\n<p>Is your plugin, Post SMTP, using the wp_posts table?  Any chance you could clean up after yourself and delete these table entries after all the emails are transmitted?<\/p>\n","protected":false},"template":"","class_list":["post-15609378","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15609378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15609378\/revisions"}],"predecessor-version":[{"id":15609385,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15609378\/revisions\/15609385"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15609378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}