Changeset 11968 for trunk/wp-admin/includes/post.php
- Timestamp:
- 09/24/2009 05:10:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r11930 r11968 589 589 590 590 $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->postmeta (post_id,meta_key,meta_value ) VALUES (%s, %s, %s)", $post_ID, $metakey, $metavalue) ); 591 do_action( 'added_postmeta', $wpdb->insert_id, $post_ID, $metakey, $metavalue ); 592 591 593 return $wpdb->insert_id; 592 594 } … … 609 611 wp_cache_delete($post_id, 'post_meta'); 610 612 611 return $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE meta_id = %d", $mid) ); 613 do_action( 'delete_postmeta', $mid ); 614 $rval = $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE meta_id = %d", $mid) ); 615 do_action( 'deleted_postmeta', $mid ); 616 617 return $rval; 612 618 } 613 619 … … 698 704 $where = compact( 'meta_id' ); 699 705 700 return $wpdb->update( $wpdb->postmeta, $data, $where ); 706 do_action( 'update_postmeta', $meta_id, $post_id, $meta_key, $meta_value ); 707 $rval = $wpdb->update( $wpdb->postmeta, $data, $where ); 708 do_action( 'updated_postmeta', $meta_id, $post_id, $meta_key, $meta_value ); 709 710 return $rval; 701 711 } 702 712
Note: See TracChangeset
for help on using the changeset viewer.