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 update_media_folder_meta

Update folder meta field based on folder ID.

Use the $prev_value parameter to differentiate between meta fields with the same key and folder ID.

If the meta field for the folder does not exist, it will be added.

Returns: int|bool Meta ID if the key didn't exist, true on successful update, false on failure.
Located at meta.php

Parameters summary

integer $folder_id Folder ID.
string $meta_key Metadata key.
mixed $meta_value Metadata value. Must be serializable if non-scalar.
mixed $prev_value = '' Previous value to check before removing.
PHPDoc Real Media Library API documentation generated by ApiGen