creating custom function to log actions in plugin June 10, 2022 by Tarik Billa Just change the action hook to: add_action( 'update_history', 'update_history', 10, 4 ); It will work.