When editing my own profile visible under my contact dashboard, it does not enter CiviCRM "civicrm_post"API hook?
Add following line before add_filter function:

require_once(ABSPATH . 'wp-includes/pluggable.php');