Hi, I am working on a child theme feature to add recorded audio to a status and to replies.
I already have the files prepared, but had some issues I would like to address/ask.
Thanks for your help!!
When a user edits a post, there is no filter to add your audio-handling logic. When they delete a post, there is no action to trigger your audio file cleanup.
A filter for editing: Ask for a filter inside the edit_status() and edit_comment() methods in the controllers, right before the $comment->update() or $status->update() call.
“Could you please add a filter like apply_filters( ‘voxel/timeline/update-status-data’, $update_data, $status ) before the data is saved in Status_Controller.php? This would allow child themes to modify the data being saved.”
An action for deletion: Ask for an action inside the delete() methods of the Status_Repository_Trait and Reply_Repository_Trait, before the database query is run.
“Could you please add an action like do_action( ‘voxel/timeline/before_delete_status’, $this->get_id() ) in the delete() method of the status repository? This would allow child themes to perform cleanup actions, like deleting associated media.”
If I get this to work properly I would love to contribute this feature for you to include in an upcoming update, if you like.
©2025 Created with 27collective LLC. All rights reserved