WordPress.org

Make WordPress Core

Changeset 15917


Ignore:
Timestamp:
10/22/10 19:18:33 (4 years ago)
Author:
ryan
Message:

Actions for adding and deleting meta. Props wojtek.szkutnik mitchoyoshitaka. fixes #14173

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/meta.php

    r15590 r15917  
    5353    $_meta_value = $meta_value; 
    5454    $meta_value = maybe_serialize( stripslashes_deep($meta_value) ); 
     55 
     56    do_action( "add_{$meta_type}_meta", $object_id, $meta_key, $_meta_value ); 
    5557 
    5658    $wpdb->insert( $table, array( 
     
    191193        return false; 
    192194 
     195    do_action( "delete_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $meta_value ); 
     196 
    193197    $query = "DELETE FROM $table WHERE $id_column IN( " . implode( ',', $meta_ids ) . " )"; 
    194198 
Note: See TracChangeset for help on using the changeset viewer.