1. Home
  2. Docs
  3. Function Reference
  4. Functions
  5. users_own_attachments_fn()

users_own_attachments_fn()

Only show the current user’s own attachments within the WP media library.

Copy to Clipboard

Parameters

$query_arr

The query object sent from

Return

array

Returns the input $query_arr but sets author to the current user’s ID.

Example

Used in a filter in ajax.

Copy to Clipboard

Location

This function can be found here: