getPluginConstantPrefix() getPluginConstantPrefix(): string Get the prefix of this plugin so composer packages can dynamically build other constant values on it. Returns string
getAttachmentFolder() getAttachmentFolder(integer|array<mixed,integer> $attachmentId,integer $default = null): integer|array<mixed,integer>|null Get folders of attachments. Parameters integer|array<mixed,integer> $attachmentId integer $default Returns integer|array<mixed,integer>|null
posts_clauses() posts_clauses(array $clauses,\WP_Query $query): array Changes the SQL query like this way to JOIN the realmedialibrary_posts table and search for the given folder. Parameters array $clauses \WP_Query $query Returns array
lastQueriedFolder() lastQueriedFolder(integer $folder = null): integer Set or get the last queried folder. Parameters integer $folder The folder id (0 is handled as "All files" folder) Returns integer
pre_get_posts() pre_get_posts(\WP_Query $query) Define a new query option. Parameters \WP_Query $query
getFolder() getFolder(\WP_Query $query,boolean $fromRequest = false): integer Get folder from different sources (WP_Query, GET Query). Parameters \WP_Query $query boolean $fromRequest Returns integer
ajax_query_attachments_args() ajax_query_attachments_args(\WP_Query $query): \WP_Query Modify AJAX request for query-attachments request. Parameters \WP_Query $query Returns \WP_Query
delete_attachment() delete_attachment(integer $postID) Add the attachment ID to the count update when deleting it. Parameters integer $postID
wp_prepare_attachment_for_js() wp_prepare_attachment_for_js(array $response,\WP_Post $attachment,mixed $meta): array Add a attribute to the ajax output. The attribute represents the folder order number if it is a gallery. Parameters array $response \WP_Post $attachment mixed $meta Returns array
isQuerying() isQuerying(): boolean Check if the current request is a query request for attachments. Returns boolean
getInstance() getInstance(): \MatthiasWeb\RealMediaLibrary\attachment\Filter Get instance. Returns \MatthiasWeb\RealMediaLibrary\attachment\Filter