WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #53942, comment 1


Ignore:
Timestamp:
08/17/2021 03:21:25 PM (4 months ago)
Author:
iknowsomething
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53942, comment 1

    v1 v2  
    88function skip_delete( $delete, $object_id, $meta_key ) {
    99    // If it's not about this meta, forward previous hook result
    10     if ( $meta_key != 'my_meta_key' ) {
     10    if ( 'my_meta_key' != $meta_key ) {
    1111        return $delete;
    1212    }