function custom_editing_permissions($data, $postarr) { //Post gets updated here WTF? die; } //Hook should be called "prior to inserting into or updating the database" add_filter('wp_insert_post_data', 'custom_editing_permissions', 1, 2 );
https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_insert_post_data
Что здесь происходит? Работает в версии 4.4.1.