Source View: deleted_{$meta_type}_meta

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
109      $query = "DELETE FROM $table WHERE meta_id IN( " . implode( ',', $meta_ids ) . " )";
110
111      $count = $wpdb->query($query);
112
113      if ( !$count )
114           return false;
115
116      wp_cache_delete($object_id, $meta_type . '_meta');
117
118      do_action( "deleted_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $meta_value );
119
120      return true;
121 }
122
123 function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) {
124      if ( !$meta_type )
125           return false;
126
127      $meta_cache = wp_cache_get($object_id, $meta_type . '_meta');