I just fixed it myself, here is the trick.
Open custom-field-template.php and update line 3285 for:
$replace_val .= $before_value . $value . $after_value . "\n";
Here is the complete (and fixed) code:
if ( $val['singleList'] == true ) :
if ( $before_list ) : $replace_val = $before_list . "\n"; endif;
$replace_val .= $before_value . $value . $after_value . "\n";
if ( $after_list ) : $replace_val .= $after_list . "\n"; endif;
endif;
I will try to contact the author of the actual plugin.
– Pascal
husar: You actually have to use the add_filter() function, not the add_action(). As ‘publish_post’ is a hook and not an action 🙂
http://codex.wordpress.org/Plugin_API/Hooks_2.0.x
This code should work perfectly (using the function above).
add_filter ( 'publish_post', 'email_me' );
Happy hooking!
– Pascal