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

users_own_attachments()

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

Copy to Clipboard

Parameters

$query_options

The query object sent from

Return

array

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

Example

Used in a filter in ajax.

Copy to Clipboard
Tags