Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #6814, comment 23


Ignore:
Timestamp:
05/24/2019 06:20:58 AM (7 years ago)
Author:
ramon fincken
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6814, comment 23

    initial v1  
    11Update: postmeta is better than an option
     2
     3Update2:
     4{{{#!php
     5if( $this->init( $thumbs_later->post_id ) ) {
     6     delete_post_meta( $thumbs_later->post_id, $this->thumbslaterkey );
     7  }
     8}}}
     9 
     10
     11might need an else to delete the meta key (when errors) else you will keep looping over the very same IDs over and over again due to them beeing in error.