Usage
add_filter( '_wp_post_revision_fields', 'your_callback_function', 10, 2 );Filter Callback:
function your_callback_function( $fields, $post ) {
// Your code here
return $fields;
}Parameters
$fieldsParameter 1
$postParameter 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.