Overview
  • Namespace
  • Class

Namespaces

  • MatthiasWeb
    • RealMediaLibrary
      • api
      • attachment
      • base
      • comp
        • complexquery
      • folder
      • general
      • metadata
      • order
      • rest
      • usersettings
  • None

Classes

  • CountCache
  • CustomField
  • Filter
  • Permissions
  • Shortcut
  • Structure
  • Upload

Class Filter

This class handles all hooks for the general filters.

MatthiasWeb\RealMediaLibrary\base\Base
Extended by MatthiasWeb\RealMediaLibrary\attachment\Filter
Namespace: MatthiasWeb\RealMediaLibrary\attachment
Located at attachment/Filter.class.php

Methods summary

public
# getAttachmentFolder( $attachmentId, $default = null )

See

wp_attachment_folder()
public
# posts_clauses( $clauses, $query )

Changes the SQL query like this way to JOIN the realmedialibrary_posts table and search for the given folder.

Changes the SQL query like this way to JOIN the realmedialibrary_posts table and search for the given folder.

public
# lastQueriedFolder( integer $folder = null )

Set or get the last queried folder.

Set or get the last queried folder.

Parameters

$folder
The folder id

Returns

int
public
# pre_get_posts( $query )

Define a new query option for \WP_Query.

Define a new query option for \WP_Query.

public
# getFolder( $query, $fromRequest = false )

Get folder from different sources (WP_Query, GET Query).

Get folder from different sources (WP_Query, GET Query).

Returns

int
public
# ajax_query_attachments_args( $query )

Modify AJAX request for query-attachments request.

Modify AJAX request for query-attachments request.

public
# delete_attachment( $postID )

Add the attachment ID to the count update when deleting it.

Add the attachment ID to the count update when deleting it.

public
# wp_prepare_attachment_for_js( $response, $attachment, $meta )

Add a attribute to the ajax output. The attribute represents the folder order number if it is a gallery.

Add a attribute to the ajax output. The attribute represents the folder order number if it is a gallery.

public
# restrict_manage_posts( )

Create a select option in list table of attachments.

Create a select option in list table of attachments.

public static
# getInstance( )

Methods inherited from MatthiasWeb\RealMediaLibrary\base\Base

debug(), getCore(), getTableName()

API documentation generated by ApiGen