Usage
add_filter( 'ajax_query_attachments_args', 'your_callback_function', 10, 1 );Filter Callback:
function your_callback_function( $query ) {
// Your code here
return $query;
}Parameters
$queryParameter 1
🔄 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.