Usage
add_filter( 'attachment_fields_to_save', 'your_callback_function', 10, 2 );Filter Callback:
function your_callback_function( $translated, $attachment_data ) {
// Your code here
return $translated;
}Parameters
$translatedParameter 1
$attachment_dataParameter 2
🔄 Filter Hook
Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.
Triggered By
This hook is called by the following functions: