PHPDoc Real Media Library
  • Namespace
  • Function

Namespaces

  • MatthiasWeb
    • RealMediaLibrary
      • api
  • None

Functions

  • _wp_rml_active
  • _wp_rml_root
  • _wp_rml_sanitize
  • add_media_folder_meta
  • add_rml_meta_box
  • add_rml_user_settings_box
  • delete_media_folder_meta
  • delete_media_folder_meta_by_key
  • get_media_folder_meta
  • is_rml_folder
  • truncate_media_folder_meta
  • update_media_folder_meta
  • wp_attachment_ensure_source_file
  • wp_attachment_folder
  • wp_attachment_get_shortcuts
  • wp_attachment_has_shortcuts
  • wp_attachment_is_shortcut
  • wp_attachment_order_update
  • wp_rml_create
  • wp_rml_create_or_return_existing_id
  • wp_rml_create_shortcuts
  • wp_rml_created_shortcuts_last_ids
  • wp_rml_delete
  • wp_rml_dropdown
  • wp_rml_dropdown_collection
  • wp_rml_dropdown_gallery
  • wp_rml_dropdown_gallery_or_collection
  • wp_rml_get_attachments
  • wp_rml_get_by_absolute_path
  • wp_rml_get_by_id
  • wp_rml_get_object_by_id
  • wp_rml_get_parent_id
  • wp_rml_is_type
  • wp_rml_move
  • wp_rml_objects
  • wp_rml_register_creatable
  • wp_rml_rename
  • wp_rml_root_childs
  • wp_rml_select_tree
  • wp_rml_structure_reset
  • wp_rml_update_count

Function wp_attachment_folder

Returns the folder id of an given attachment or more than one attachment (array). If you pass an array as attachment ids, then the default value does not work, only for single queries. When you pass a shortcut attachment id, the folder id for the shortcut is returned.

Returns: int|mixed Folder ID or $default or Array
Located at attachment.php

Parameters summary

integer $attachmentId The attachment ID, if you pass an array you get an array of folder IDs
mixed $default = null If no folder was found for this, this value is returned for the attachment
PHPDoc Real Media Library API documentation generated by ApiGen