logo

This is an old version of this answer!

Return to the current answer
posible to filter that data.



//do_action( "added_{$meta_type}_meta", $wpdb->insert_id, $object_id, $meta_key, $meta_value );
add_action('added_post_meta', 'added_post_meta_filter',1,4);

function added_post_meta_filter($postid,$objectid,$mk,$vl){
if ($mk == 'exiers'){
//here is should be get post categories,
// is post in categories,
// is yeas filter data
// and direct update thought wpdb
}
}

Oleg Butuzov | 05/13/10 at 5:55am

This is an old version of this answer!

Return to the current answer