Strange behaviour with add_{$meta_type}_metadata | add_post_metadata filter
Ok I’ve found the solution… I have had to call add_filter outside my plugin class, because of WordPress hooks priority. With the actual code, I call add_filter after the ‘init’ event, that’s probably too late. If I move this line of code: add_filter(‘add_post_metadata’,array(&$this,’filter_negozi_add_metadata’),10,5); on top of the file, the hook works like expected. So to … Read more