Actions and Filters

Filters

File Filter Name Description
/media-library-organizer.php
  media_library_organizer_is_admin_or_frontend_editor Filters whether the current request is a WordPress Administration / Frontend Editor request or not. Page Builders can set this to true to allow Media Library Organizer and its Addons to load its functionality.
/includes/global/mime.php
  media_library_organizer_mime_get_file_types Defines top level file types, such as Images, Videos, Audio and Documents.
  media_library_organizer_mime_get_all_file_types Defines all file types
  media_library_organizer_mime_get_image_file_types Defines image file types
  media_library_organizer_mime_get_video_file_types Defines video file types
  media_library_organizer_mime_get_text_file_types Defines text file types
  media_library_organizer_mime_get_audio_file_types Defines audio file types
  media_library_organizer_mime_get_document_file_types Defines image types
  media_library_organizer_mime_get_spreadsheet_file_types Defines image types
  media_library_organizer_mime_get_presentation_file_types Defines image types
  media_library_organizer_mime_get_archive_file_types Defines archive file types
/includes/global/shortcode.php
  media_library_organizer_shortcode_output_gallery Allows Addons to modify the [gallery] shortcode HTML If output is blank, WordPress' gallery_shortcode() will provide the output as a fallback.
/includes/global/dynamic-tags.php
  media_library_organizer_dynamic_tags_get Returns an array of tags that can be used as an attribute's value. Tags are then dynamically replaced with file data.
  media_library_organizer_dynamic_tags_register_all_possible_searches_replacements Register tags and their replacement values for the given Attachment
  media_library_organizer_dynamic_tags_register_filename_searches_replacements Registers tags and their data replacements for the given Attachment's filename
  media_library_organizer_dynamic_tags_register_author_searches_replacements Registers tags and their data replacements for the given Attachment's author
/includes/global/common.php
  media_library_organizer_defaults_common_get_autocomplete_enabled_fields Defines an array of Javascript DOM selectors to enable the keyword autocomplete functionality on.
  media_library_organizer_common_get_author_options Defines the available Author options.
  media_library_organizer_common_get_operator_options Defines the available comparison operator options.
  media_library_organizer_common_get_position_options Defines the available layout position options.
  media_library_organizer_common_get_file_type_options Defines the available file type options for WP_Query calls
  media_library_organizer_common_get_orderby_options Defines the available WP_Query compatible order by options.
  media_library_organizer_common_get_orderby_default Defines the default order_by value for WP_Query queries
  media_library_organizer_common_get_order_options Defines the available WP_Query compatible order options.
  media_library_organizer_common_get_order_default Defines the default order_by value for WP_Query queries
  media_library_organizer_common_get_attachment_display_settings_alignment
  media_library_organizer_common_get_attachment_display_settings_link_to Defines the available Attachment Display Settings: Link To options.
  media_library_organizer_common_get_attachment_display_settings_size Defines the available WordPress registered Image Sizes.
  media_library_organizer_common_get_terms_hierarchical Defines the available hierarchical terms for the given Taxonomy.
  media_library_organizer_common_get_media_view Defines the current Media View the user is on (either list or grid).
/includes/global/media.php
  media_library_organizer_media_output_list_table_filters_taxonomy_filter_args Define the wp_dropdown_categories() compatible arguments for the Media Categories Taxonomy Filter in the Media Library List View
  media_library_organizer_media_output_list_table_filters_taxonomy Filters the HTML output produced by wp_dropdown_categories() in the Media Library List View immediately before it's output.
  media_library_organizer_media_enqueue_js_css_selectize_selectors Defines the selectize DOM selectors for various Selectize JS instances, such as Simple and AJAX implementations
  media_library_organizer_media_define_list_view_columns Defines the Columns to display in the List View WP_List_Table
  media_library_organizer_media_define_list_view_columns_output Defines the data to display in the List View WP_List_Table Column, for the given column and Attachment
  media_library_organizer_media_define_list_view_columns_output_ column_name Defines the data to display in the List View WP_List_Table Column, for the given column and Attachment
  media_library_organizer_media_filter_attachments_grid Defines the arguments used when querying for Media in the Media Grid View.
  media_library_organizer_media_filter_attachments_list_file_type Filter Attachments by File Type, if a Filter has not yet been applied.
  media_library_organizer_media_filter_attachments Defines the arguments used when querying for Media in the Media List View.
  media_library_organizer_media_filter_attachments_where_clause Filters Attachments in both List and Grid views by allowing the WHERE clause to be altered
  media_library_organizer_media_attachment_edit_modal_form_fields Defines the fields to display when editing an Attachment in the modal.
/includes/global/user-option.php
  media_library_organizer_user_option_get_option Filter the value returned for a User Option.
  media_library_organizer_user_option_update_option Filter the value just before saving a User Option.
  media_library_organizer_user_option_get_default_option Filter the default value returned for a User Option, when no saved option value exists.
  media_library_organizer_user_option_get_default_options Filter the default options to be applied where no saved option value exists.
/includes/global/upload.php
  media_library_organizer_upload_plupload_options Define the pluploader's options
  media_library_organizer_upload_filter_existing_attachment_data_before_save Filters attachment post data for an existing Attachment before it is saved to the WordPress Media Library
  media_library_organizer_upload_filter_new_attachment_data_before_save Filters attachment post data before a new Attachment is saved to the WordPress Media Library
/includes/global/filesystem.php
  media_library_organizer_common_get_tmp_folder Defines the temporary server folder location to use for file operations.
/includes/global/settings.php
  media_library_organizer_settings_get_setting Filters the settings data for the given setting type and key before it is returned.
  media_library_organizer_settings_get_settings Filters the settings data for the given setting type before it is returned.
  media_library_organizer_settings_update_setting Defines the setting data just before it is saved for the given type and key.
  media_library_organizer_settings_update_settings Defines the settings data just before it is saved for the given type.
  media_library_organizer_settings_delete_setting Filters the setting data just before it is deleted.
  media_library_organizer_settings_get_default_settings Defines the default settings for the given type.
/includes/global/taxonomies.php
  media_library_organizer_taxonomy_register_taxonomy Defines the parameters for registering the Media Categories Taxonomy
  media_library_organizer_taxonomies_register Defines Taxonomies to Register against Attachments
/includes/admin/notices.php
  media_library_organizer_notices_get_success_notices Filters the success notices to return.
  media_library_organizer_notices_get_error_notices Filters the error notices to return.
  media_library_organizer_notices_get_notices Filters the success and error notices to return.
  media_library_organizer_notices_save Filters the success and error notices to save.
/includes/admin/admin.php
  media_library_organizer_admin_body_class Registers screen names that should add the wpzinc class to the tag
  media_library_organizer_admin_admin_menu_minimum_capability Defines the minimum capability required to access the Media Library Organizer Menu and Sub Menus
  media_library_organizer_admin_get_screens Define sections in the Plugin's Settings
  media_library_organizer_admin_get_current_screen_ screen Adjust the screen data immediately before returning
  media_library_organizer_admin_get_screen_tabs Define tabs in the Plugin Settings section.
  media_library_organizer_admin_get_screen_addon_tabs Define Addon tabs in the Plugin Settings section.
  media_library_organizer_admin_save_settings Save POSTed data on a Settings Screen
  media_library_organizer_admin_save_settings_ screen Saves Settings for a non-setting screen
/includes/admin/api.php
  media_library_organizer_api_set_timeout Defines the maximum time to allow the API request to run.
/includes/admin/admin-ajax.php
  media_library_organizer_admin_save_settings
/addons/tree-view/includes/global/media.php
  media_library_organizer_tree_view_media_get_tree_view_taxonomy Defines the Taxonomy to display Terms for in the Tree View

media_library_organizer_is_admin_or_frontend_editor /media-library-organizer.php::342

Overview

Filters whether the current request is a WordPress Administration / Frontend Editor request or not. Page Builders can set this to true to allow Media Library Organizer and its Addons to load its functionality.

Parameters

Parameter Type Description
$is_admin_or_frontend_editor bool Is WordPress Administration / Frontend Editor request.
$_REQUEST array $_REQUEST data

Usage

add_filter( 'media_library_organizer_is_admin_or_frontend_editor', function( $is_admin_or_frontend_editor, $_REQUEST ) {
	// ... your code here
	// Return value
	return $is_admin_or_frontend_editor;
}, 10, 2 );


media_library_organizer_mime_get_file_types /includes/global/mime.php::102

Overview

Defines top level file types, such as Images, Videos, Audio and Documents.

Parameters

Parameter Type Description
$file_types array File Types

Usage

add_filter( 'media_library_organizer_mime_get_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_all_file_types /includes/global/mime.php::137

Overview

Defines all file types

Parameters

Parameter Type Description
$file_types array All File Types

Usage

add_filter( 'media_library_organizer_mime_get_all_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_image_file_types /includes/global/mime.php::173

Overview

Defines image file types

Parameters

Parameter Type Description
$file_types array Image File Types

Usage

add_filter( 'media_library_organizer_mime_get_image_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_video_file_types /includes/global/mime.php::215

Overview

Defines video file types

Parameters

Parameter Type Description
$file_types array Video File Types

Usage

add_filter( 'media_library_organizer_mime_get_video_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_text_file_types /includes/global/mime.php::251

Overview

Defines text file types

Parameters

Parameter Type Description
$file_types array Text File Types

Usage

add_filter( 'media_library_organizer_mime_get_text_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_audio_file_types /includes/global/mime.php::288

Overview

Defines audio file types

Parameters

Parameter Type Description
$file_types array Audio File Types

Usage

add_filter( 'media_library_organizer_mime_get_audio_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_document_file_types /includes/global/mime.php::331

Overview

Defines image types

Parameters

Parameter Type Description
$file_types array Document File Types

Usage

add_filter( 'media_library_organizer_mime_get_document_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_spreadsheet_file_types /includes/global/mime.php::367

Overview

Defines image types

Parameters

Parameter Type Description
$file_types array Spreadsheet File Types

Usage

add_filter( 'media_library_organizer_mime_get_spreadsheet_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_presentation_file_types /includes/global/mime.php::406

Overview

Defines image types

Parameters

Parameter Type Description
$file_types array Presentation File Types

Usage

add_filter( 'media_library_organizer_mime_get_presentation_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


media_library_organizer_mime_get_archive_file_types /includes/global/mime.php::438

Overview

Defines archive file types

Parameters

Parameter Type Description
$file_types array Archive File Types

Usage

add_filter( 'media_library_organizer_mime_get_archive_file_types', function( $file_types ) {
	// ... your code here
	// Return value
	return $file_types;
}, 10, 1 );


Overview

Allows Addons to modify the [gallery] shortcode HTML If output is blank, WordPress' gallery_shortcode() will provide the output as a fallback.

Parameters

Parameter Type Description
$output string HTML Output (if blank, gallery_shortcode() is used)
$atts array Shortcode Attributes
$instance ? Shortcode Instance

Usage

add_filter( 'media_library_organizer_shortcode_output_gallery', function( $output, $atts, $instance ) {
	// ... your code here
	// Return value
	return $output;
}, 10, 3 );


media_library_organizer_dynamic_tags_get /includes/global/dynamic-tags.php::76

Overview

Returns an array of tags that can be used as an attribute's value. Tags are then dynamically replaced with file data.

Parameters

Parameter Type Description
$fields array Supported Fields

Usage

add_filter( 'media_library_organizer_dynamic_tags_get', function( $tags ) {
	// ... your code here
	// Return value
	return $tags;
}, 10, 1 );


media_library_organizer_dynamic_tags_register_all_possible_searches_replacements /includes/global/dynamic-tags.php::155

Overview

Register tags and their replacement values for the given Attachment

Parameters

Parameter Type Description
$searches_replacements array Searches (Tags) and Replacements (File Values)
$post WP_Post Attachment Post

Usage

add_filter( 'media_library_organizer_dynamic_tags_register_all_possible_searches_replacements', function( $searches_replacements, $post ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 2 );


media_library_organizer_dynamic_tags_register_filename_searches_replacements /includes/global/dynamic-tags.php::199

Overview

Registers tags and their data replacements for the given Attachment's filename

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$post WP_Post WordPress Post

Usage

add_filter( 'media_library_organizer_dynamic_tags_register_filename_searches_replacements', function( $searches_replacements, $post ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 2 );


media_library_organizer_dynamic_tags_register_author_searches_replacements /includes/global/dynamic-tags.php::241

Overview

Registers tags and their data replacements for the given Attachment's author

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$author WP_User WordPress Author

Usage

add_filter( 'media_library_organizer_dynamic_tags_register_author_searches_replacements', function( $searches_replacements, $author ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 2 );


media_library_organizer_defaults_common_get_autocomplete_enabled_fields /includes/global/common.php::57

Overview

Defines an array of Javascript DOM selectors to enable the keyword autocomplete functionality on.

Parameters

Parameter Type Description
$fields array Supported Fields

Usage

add_filter( 'media_library_organizer_defaults_common_get_autocomplete_enabled_fields', function( $fields ) {
	// ... your code here
	// Return value
	return $fields;
}, 10, 1 );


media_library_organizer_common_get_author_options /includes/global/common.php::88

Overview

Defines the available Author options.

Parameters

Parameter Type Description
$options array Authors (WordPress Users)

Usage

add_filter( 'media_library_organizer_common_get_author_options', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


media_library_organizer_common_get_operator_options /includes/global/common.php::117

Overview

Defines the available comparison operator options.

Parameters

Parameter Type Description
$options array Comparison Operators

Usage

add_filter( 'media_library_organizer_common_get_operator_options', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


media_library_organizer_common_get_position_options /includes/global/common.php::147

Overview

Defines the available layout position options.

Parameters

Parameter Type Description
$options array Layout Positions

Usage

add_filter( 'media_library_organizer_common_get_position_options', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


media_library_organizer_common_get_file_type_options /includes/global/common.php::187

Overview

Defines the available file type options for WP_Query calls

Parameters

Parameter Type Description
$options array File Type Options
$post_mime_types array Post MIME Types
$avail_post_mime_types array Available Post MIME Types

Usage

add_filter( 'media_library_organizer_common_get_file_type_options', function( $options, $post_mime_types, $avail_post_mime_types ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 3 );


media_library_organizer_common_get_orderby_options /includes/global/common.php::222

Overview

Defines the available WP_Query compatible order by options.

Parameters

Parameter Type Description
$options array Order By Options

Usage

add_filter( 'media_library_organizer_common_get_orderby_options', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


media_library_organizer_common_get_orderby_default /includes/global/common.php::247

Overview

Defines the default order_by value for WP_Query queries

Parameters

Parameter Type Description
$options array Layout Positions

Usage

add_filter( 'media_library_organizer_common_get_orderby_default', function( $default ) {
	// ... your code here
	// Return value
	return $default;
}, 10, 1 );


media_library_organizer_common_get_order_options /includes/global/common.php::276

Overview

Defines the available WP_Query compatible order options.

Parameters

Parameter Type Description
$options array Order Options

Usage

add_filter( 'media_library_organizer_common_get_order_options', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


media_library_organizer_common_get_order_default /includes/global/common.php::301

Overview

Defines the default order_by value for WP_Query queries

Parameters

Parameter Type Description
$options array Layout Positions

Usage

add_filter( 'media_library_organizer_common_get_order_default', function( $default ) {
	// ... your code here
	// Return value
	return $default;
}, 10, 1 );


media_library_organizer_common_get_attachment_display_settings_alignment /includes/global/common.php::324

Parameters

Parameter Type Description
$options Unknown N/A

Usage

add_filter( 'media_library_organizer_common_get_attachment_display_settings_alignment', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


Overview

Defines the available Attachment Display Settings: Link To options.

Parameters

Parameter Type Description
$options array Attachment Display Settings: Link To Options

Usage

add_filter( 'media_library_organizer_common_get_attachment_display_settings_link_to', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


media_library_organizer_common_get_attachment_display_settings_size /includes/global/common.php::430

Overview

Defines the available WordPress registered Image Sizes.

Parameters

Parameter Type Description
$options array Attachment Display Settings: Link To Options

Usage

add_filter( 'media_library_organizer_common_get_attachment_display_settings_size', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


media_library_organizer_common_get_terms_hierarchical /includes/global/common.php::481

Overview

Defines the available hierarchical terms for the given Taxonomy.

Parameters

Parameter Type Description
$hierarchical_terms array Hierarchical Terms

Usage

add_filter( 'media_library_organizer_common_get_terms_hierarchical', function( $hierarchical_terms, $taxonomy, $hierarchy ) {
	// ... your code here
	// Return value
	return $hierarchical_terms;
}, 10, 3 );


media_library_organizer_common_get_media_view /includes/global/common.php::545

Overview

Defines the current Media View the user is on (either list or grid).

Parameters

Parameter Type Description
$media_view string Media View

Usage

add_filter( 'media_library_organizer_common_get_media_view', function( $media_view ) {
	// ... your code here
	// Return value
	return $media_view;
}, 10, 1 );


media_library_organizer_media_output_list_table_filters_taxonomy_filter_args /includes/global/media.php::217

Overview

Define the wp_dropdown_categories() compatible arguments for the Media Categories Taxonomy Filter in the Media Library List View

Parameters

Parameter Type Description
$taxonomy_filters_args array wp_dropdown_categories() compatible arguments
$taxonomy_name string Taxonomy Name

Usage

add_filter( 'media_library_organizer_media_output_list_table_filters_taxonomy_filter_args', function( $taxonomy_filter_args, $taxonomy_name ) {
	// ... your code here
	// Return value
	return $taxonomy_filter_args;
}, 10, 2 );


media_library_organizer_media_output_list_table_filters_taxonomy /includes/global/media.php::253

Overview

Filters the HTML output produced by wp_dropdown_categories() in the Media Library List View immediately before it's output.

Parameters

Parameter Type Description
$output string wp_dropdown_categories() HTML
$args array wp_dropdown_categories() arguments

Usage

add_filter( 'media_library_organizer_media_output_list_table_filters_taxonomy', function( $output, $args ) {
	// ... your code here
	// Return value
	return $output;
}, 10, 2 );


media_library_organizer_media_enqueue_js_css_selectize_selectors /includes/global/media.php::392

Overview

Defines the selectize DOM selectors for various Selectize JS instances, such as Simple and AJAX implementations

Parameters

Parameter Type Description
$selectize_selectors array Selectize DOM Selectors

Usage

add_filter( 'media_library_organizer_media_enqueue_js_css_selectize_selectors', function( $selectize_selectors ) {
	// ... your code here
	// Return value
	return $selectize_selectors;
}, 10, 1 );


media_library_organizer_media_define_list_view_columns /includes/global/media.php::424

Overview

Defines the Columns to display in the List View WP_List_Table

Parameters

Parameter Type Description
$columns array Columns
$is_detached bool Is Attachment Detached

Usage

add_filter( 'media_library_organizer_media_define_list_view_columns', function( $columns, $is_detached ) {
	// ... your code here
	// Return value
	return $columns;
}, 10, 2 );


media_library_organizer_media_define_list_view_columns_output /includes/global/media.php::456

Overview

Defines the data to display in the List View WP_List_Table Column, for the given column and Attachment

Parameters

Parameter Type Description
$output string Output
$column_name string Column Name
$id int Attachment ID

Usage

add_filter( 'media_library_organizer_media_define_list_view_columns_output', function( $output, $column_name, $id ) {
	// ... your code here
	// Return value
	return $output;
}, 10, 3 );


media_library_organizer_media_define_list_view_columns_output_ column_name /includes/global/media.php::468

Overview

Defines the data to display in the List View WP_List_Table Column, for the given column and Attachment

Parameters

Parameter Type Description
$output string Output
$id int Attachment ID

Usage

add_filter( 'media_library_organizer_media_define_list_view_columns_output_  column_name', function( $output, $id ) {
	// ... your code here
	// Return value
	return $output;
}, 10, 2 );


media_library_organizer_media_filter_attachments_grid /includes/global/media.php::537

Overview

Defines the arguments used when querying for Media in the Media Grid View.

Parameters

Parameter Type Description
$args array WP_Query compatible arguments
$query array Request query, which may include custom attributes not included in $args

Usage

add_filter( 'media_library_organizer_media_filter_attachments_grid', function( $args, $query ) {
	// ... your code here
	// Return value
	return $args;
}, 10, 2 );


media_library_organizer_media_filter_attachments_list_file_type /includes/global/media.php::625

Overview

Filter Attachments by File Type, if a Filter has not yet been applied.

Parameters

Parameter Type Description
$query WP_Query WordPress Query
$file_type string File Type

Usage

add_filter( 'media_library_organizer_media_filter_attachments_list_file_type', function( $query, $file_type ) {
	// ... your code here
	// Return value
	return $query;
}, 10, 2 );


media_library_organizer_media_filter_attachments /includes/global/media.php::721

Overview

Defines the arguments used when querying for Media in the Media List View.

Parameters

Parameter Type Description
$query WP_Query WordPress Query object
$_REQUEST array Unfiltered $_REQUEST data

Usage

add_filter( 'media_library_organizer_media_filter_attachments', function( $query, $_REQUEST ) {
	// ... your code here
	// Return value
	return $query;
}, 10, 2 );


media_library_organizer_media_filter_attachments_where_clause /includes/global/media.php::752

Overview

Filters Attachments in both List and Grid views by allowing the WHERE clause to be altered

Parameters

Parameter Type Description
$where string WHERE Clause
$query WP_Query WordPress Search Query

Usage

add_filter( 'media_library_organizer_media_filter_attachments_where_clause', function( $where, $query ) {
	// ... your code here
	// Return value
	return $where;
}, 10, 2 );


media_library_organizer_media_attachment_edit_modal_form_fields /includes/global/media.php::852

Overview

Defines the fields to display when editing an Attachment in the modal.

Parameters

Parameter Type Description
$form_fields array Form Fields
$post WP_Post Attachment Post

Usage

add_filter( 'media_library_organizer_media_attachment_edit_modal_form_fields', function( $form_fields, $post ) {
	// ... your code here
	// Return value
	return $form_fields;
}, 10, 2 );


media_library_organizer_user_option_get_option /includes/global/user-option.php::70

Overview

Filter the value returned for a User Option.

Parameters

Parameter Type Description
$value string Option Value
$option_name string Option Name
$user_id int User ID

Usage

add_filter( 'media_library_organizer_user_option_get_option', function( $value, $option_name, $user_id ) {
	// ... your code here
	// Return value
	return $value;
}, 10, 3 );


media_library_organizer_user_option_update_option /includes/global/user-option.php::98

Overview

Filter the value just before saving a User Option.

Parameters

Parameter Type Description
$value string Option Value
$option_name string Option Name
$user_id int User ID

Usage

add_filter( 'media_library_organizer_user_option_update_option', function( $value, $option_name, $user_id ) {
	// ... your code here
	// Return value
	return $value;
}, 10, 3 );


media_library_organizer_user_option_get_default_option /includes/global/user-option.php::154

Overview

Filter the default value returned for a User Option, when no saved option value exists.

Parameters

Parameter Type Description
$default mixed Default Value
$option_name string Option Name

Usage

add_filter( 'media_library_organizer_user_option_get_default_option', function( $default, $option_name ) {
	// ... your code here
	// Return value
	return $default;
}, 10, 2 );


media_library_organizer_user_option_get_default_options /includes/global/user-option.php::183

Overview

Filter the default options to be applied where no saved option value exists.

Parameters

Parameter Type Description
$defaults array Default Option Key/Value Pairs

Usage

add_filter( 'media_library_organizer_user_option_get_default_options', function( $defaults ) {
	// ... your code here
	// Return value
	return $defaults;
}, 10, 1 );


media_library_organizer_upload_plupload_options /includes/global/upload.php::94

Overview

Define the pluploader's options

Parameters

Parameter Type Description
$options array Plupload Options

Usage

add_filter( 'media_library_organizer_upload_plupload_options', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


media_library_organizer_upload_filter_existing_attachment_data_before_save /includes/global/upload.php::124

Overview

Filters attachment post data for an existing Attachment before it is saved to the WordPress Media Library

Parameters

Parameter Type Description
$data array Slashed, sanitized, and processed attachment post data.
$unprocessed_data array Slashed and sanitized attachment post data, but not processed.

Usage

add_filter( 'media_library_organizer_upload_filter_existing_attachment_data_before_save', function( $data, $unprocessed_data, $data['ID'] ) {
	// ... your code here
	// Return value
	return $data;
}, 10, 3 );


media_library_organizer_upload_filter_new_attachment_data_before_save /includes/global/upload.php::136

Overview

Filters attachment post data before a new Attachment is saved to the WordPress Media Library

Parameters

Parameter Type Description
$data array Slashed, sanitized, and processed attachment post data.
$unprocessed_data array Slashed and sanitized attachment post data, but not processed.

Usage

add_filter( 'media_library_organizer_upload_filter_new_attachment_data_before_save', function( $data, $unprocessed_data ) {
	// ... your code here
	// Return value
	return $data;
}, 10, 2 );


media_library_organizer_common_get_tmp_folder /includes/global/filesystem.php::121

Overview

Defines the temporary server folder location to use for file operations.

Parameters

Parameter Type Description
$temporary_folder string Full Path to Temporary Folder
$sub_folder string Relative Path to optional Sub Folder (relative to Temporary Folder)

Usage

add_filter( 'media_library_organizer_common_get_tmp_folder', function( $temporary_folder, $sub_folder ) {
	// ... your code here
	// Return value
	return $temporary_folder;
}, 10, 2 );


media_library_organizer_settings_get_setting /includes/global/settings.php::69

Overview

Filters the settings data for the given setting type and key before it is returned.

Parameters

Parameter Type Description
$setting mixed Settings Data (string, array, object)
$type string Setting Type (option key)
$key string Setting Type Key (setting key within option value)

Usage

add_filter( 'media_library_organizer_settings_get_setting', function( $setting, $type, $key ) {
	// ... your code here
	// Return value
	return $setting;
}, 10, 3 );


media_library_organizer_settings_get_settings /includes/global/settings.php::121

Overview

Filters the settings data for the given setting type before it is returned.

Parameters

Parameter Type Description
$settings mixed Settings Data (string, array, object)
$type string Setting Type (option key)

Usage

add_filter( 'media_library_organizer_settings_get_settings', function( $settings, $type ) {
	// ... your code here
	// Return value
	return $settings;
}, 10, 2 );


media_library_organizer_settings_update_setting /includes/global/settings.php::152

Overview

Defines the setting data just before it is saved for the given type and key.

Parameters

Parameter Type Description
$value mixed Settings Data (string, array, object)
$type string Setting Type (option key)
$key string Setting Type Key (setting key within option value)

Usage

add_filter( 'media_library_organizer_settings_update_setting', function( $value, $type, $key ) {
	// ... your code here
	// Return value
	return $value;
}, 10, 3 );


media_library_organizer_settings_update_settings /includes/global/settings.php::181

Overview

Defines the settings data just before it is saved for the given type.

Parameters

Parameter Type Description
$settings mixed Settings Data (string, array, object)
$type string Setting Type (option key)

Usage

add_filter( 'media_library_organizer_settings_update_settings', function( $settings, $type ) {
	// ... your code here
	// Return value
	return $settings;
}, 10, 2 );


media_library_organizer_settings_delete_setting /includes/global/settings.php::218

Overview

Filters the setting data just before it is deleted.

Parameters

Parameter Type Description
$value mixed Settings Data (string, array, object)
$type string Setting Type (option key)
$key string Setting Type Key (setting key within option value)

Usage

add_filter( 'media_library_organizer_settings_delete_setting', function( $settings, $type, $key ) {
	// ... your code here
	// Return value
	return $settings;
}, 10, 3 );


media_library_organizer_settings_get_default_settings /includes/global/settings.php::312

Overview

Defines the default settings for the given type.

Parameters

Parameter Type Description
$defaults array Setting Defaults
$type string Setting Type (option key)

Usage

add_filter( 'media_library_organizer_settings_get_default_settings', function( $defaults, $type ) {
	// ... your code here
	// Return value
	return $defaults;
}, 10, 2 );


media_library_organizer_taxonomy_register_taxonomy /includes/global/taxonomies.php::119

Overview

Defines the parameters for registering the Media Categories Taxonomy

Parameters

Parameter Type Description
$args array Arguments

Usage

add_filter( 'media_library_organizer_taxonomy_register_taxonomy', function( $args ) {
	// ... your code here
	// Return value
	return $args;
}, 10, 1 );


media_library_organizer_taxonomies_register /includes/global/taxonomies.php::163

Overview

Defines Taxonomies to Register against Attachments

Parameters

Parameter Type Description
$taxonomies array Taxonomies to Register

Usage

add_filter( 'media_library_organizer_taxonomies_register', function( $taxonomies ) {
	// ... your code here
	// Return value
	return $taxonomies;
}, 10, 1 );


media_library_organizer_notices_get_success_notices /includes/admin/notices.php::131

Overview

Filters the success notices to return.

Parameters

Parameter Type Description
$success_notices array Success Notices
$notices object Success and Error Notices

Usage

add_filter( 'media_library_organizer_notices_get_success_notices', function( $success_notices, $notices ) {
	// ... your code here
	// Return value
	return $success_notices;
}, 10, 2 );


media_library_organizer_notices_get_error_notices /includes/admin/notices.php::202

Overview

Filters the error notices to return.

Parameters

Parameter Type Description
$error_notices array Error Notices
$notices object Success and Error Notices

Usage

add_filter( 'media_library_organizer_notices_get_error_notices', function( $error_notices, $notices ) {
	// ... your code here
	// Return value
	return $error_notices;
}, 10, 2 );


media_library_organizer_notices_get_notices /includes/admin/notices.php::260

Overview

Filters the success and error notices to return.

Parameters

Parameter Type Description
$notices array Success and Error Notices

Usage

add_filter( 'media_library_organizer_notices_get_notices', function( $notices ) {
	// ... your code here
	// Return value
	return $notices;
}, 10, 1 );


media_library_organizer_notices_save /includes/admin/notices.php::300

Overview

Filters the success and error notices to save.

Parameters

Parameter Type Description
$notices array Success and Error Notices

Usage

add_filter( 'media_library_organizer_notices_save', function( $notices ) {
	// ... your code here
	// Return value
	return $notices;
}, 10, 1 );


media_library_organizer_admin_body_class /includes/admin/admin.php::92

Overview

Registers screen names that should add the wpzinc class to the tag

Parameters

Parameter Type Description
$screens array Screen Names

Usage

add_filter( 'media_library_organizer_admin_body_class', function( $screens ) {
	// ... your code here
	// Return value
	return $screens;
}, 10, 1 );


media_library_organizer_admin_admin_menu_minimum_capability /includes/admin/admin.php::318

Overview

Defines the minimum capability required to access the Media Library Organizer Menu and Sub Menus

Parameters

Parameter Type Description
$capability string Minimum Required Capability

Usage

add_filter( 'media_library_organizer_admin_admin_menu_minimum_capability', function( $minimum_capability ) {
	// ... your code here
	// Return value
	return $minimum_capability;
}, 10, 1 );


media_library_organizer_admin_get_screens /includes/admin/admin.php::385

Overview

Define sections in the Plugin's Settings

Parameters

Parameter Type Description
$screens array Registered Plugin Screens

Usage

add_filter( 'media_library_organizer_admin_get_screens', function( $screens ) {
	// ... your code here
	// Return value
	return $screens;
}, 10, 1 );


media_library_organizer_admin_get_current_screen_ screen /includes/admin/admin.php::433

Overview

Adjust the screen data immediately before returning

Parameters

Parameter Type Description
$screens[ array $screen
$screen string Screen Name

Usage

add_filter( 'media_library_organizer_admin_get_current_screen_  screen', function( $screens[ $screen ], $screen ) {
	// ... your code here
	// Return value
	return $screens[ $screen ];
}, 10, 2 );


media_library_organizer_admin_get_screen_tabs /includes/admin/admin.php::542

Overview

Define tabs in the Plugin Settings section.

Parameters

Parameter Type Description
$tabs array Settings Tabs
$screen string Current Screen Name to define Tabs for

Usage

add_filter( 'media_library_organizer_admin_get_screen_tabs', function( $tabs, $screen ) {
	// ... your code here
	// Return value
	return $tabs;
}, 10, 2 );


media_library_organizer_admin_get_screen_addon_tabs /includes/admin/admin.php::610

Overview

Define Addon tabs in the Plugin Settings section.

Parameters

Parameter Type Description
$tabs array Settings Tabs
$screen string Current Screen Name to define Tabs for

Usage

add_filter( 'media_library_organizer_admin_get_screen_addon_tabs', function( $addon_tabs, $screen ) {
	// ... your code here
	// Return value
	return $addon_tabs;
}, 10, 2 );


media_library_organizer_admin_save_settings /includes/admin/admin.php::750

Overview

Save POSTed data on a Settings Screen

Parameters

Parameter Type Description
$result mixed Result of saving data (true or WP_Error)
$_POST array Unfiltered $_POST data

Usage

add_filter( 'media_library_organizer_admin_save_settings', function( true, $_POST ) {
	// ... your code here
	// Return value
	return true;
}, 10, 2 );


media_library_organizer_admin_save_settings_ screen /includes/admin/admin.php::776

Overview

Saves Settings for a non-setting screen

Parameters

Parameter Type Description
$result mixed Result of importing data (true or WP_Error)
$_POST array Unfiltered $_POST data to save

Usage

add_filter( 'media_library_organizer_admin_save_settings_  screen', function( '', $_POST ) {
	// ... your code here
	// Return value
	return '';
}, 10, 2 );


media_library_organizer_api_set_timeout /includes/admin/api.php::149

Overview

Defines the maximum time to allow the API request to run.

Parameters

Parameter Type Description
$timeout int Timeout, in seconds

Usage

add_filter( 'media_library_organizer_api_set_timeout', function( $timeout ) {
	// ... your code here
	// Return value
	return $timeout;
}, 10, 1 );


media_library_organizer_admin_save_settings /includes/admin/admin-ajax.php::71

Parameters

Parameter Type Description
true Unknown N/A
$settings Unknown N/A

Usage

add_filter( 'media_library_organizer_admin_save_settings', function( true, $settings ) {
	// ... your code here
	// Return value
	return true;
}, 10, 2 );


media_library_organizer_tree_view_media_get_tree_view_taxonomy /addons/tree-view/includes/global/media.php::268

Overview

Defines the Taxonomy to display Terms for in the Tree View

Parameters

Parameter Type Description
$taxonomy_name string Taxonomy Name

Usage

add_filter( 'media_library_organizer_tree_view_media_get_tree_view_taxonomy', function( 'mlo-category' ) {
	// ... your code here
	// Return value
	return 'mlo-category';
}, 10, 1 );


Actions

File Filter Name Description
/views/admin/settings-general.php
  media_library_organizer_admin_output_settings_panel_general
  media_library_organizer_admin_output_settings_panel_user_options
  media_library_organizer_admin_output_settings_panels
/views/admin/settings-import-export.php
  media_library_organizer_import_view_ import_sourcename
/includes/global/editor.php
  media_library_organizer_editor_output_media_buttons
/includes/global/shortcode.php
  media_library_organizer_shortcode_reregister_gallery_filters
/includes/global/frontend.php
  media_library_organizer_frontend_enqueue_scripts
  media_library_organizer_frontend_enqueue_css
/includes/global/media.php
  media_library_organizer_media_output_list_table_filters
  media_library_organizer_media_enqueue_js_css Enqueue JS and CSS for Media Views.
  media_library_organizer_media_attachment_edit_form_fields Adds Meta Boxes to the Attachment Edit view.
  media_library_organizer_media_attachment_save_fields Save Meta Box fields when saving an Attachment
  media_library_organizer_media_attachment_edit_modal_save_fields Save form field data from the Attachment modal or Quick Edit Form against the Attachment.
  media_library_organizer_media_print_media_templates
  media_library_organizer_media_media_library_footer
/includes/global/user-option.php
  media_library_organizer_user_options_delete_option Runs actions before a User option is deleted.
/includes/global/upload.php
  media_library_organizer_upload_output_upload_ui
  media_library_organizer_upload_add_attachment Allows Addons to run actions on an attachment that has just been uploaded to the WordPress Media Library
/includes/global/filesystem.php
  media_library_organizer_filesystem_add_file_as_attachment_remove_actions
  media_library_organizer_filesystem_add_file_as_attachment_restore_actions
/includes/global/settings.php
  media_library_organizer_settings_delete_settings Runs actions after a Settings Type is deleted.
/includes/admin/notices.php
  media_library_organizer_notices_delete_notices
/includes/admin/admin.php
  media_library_organizer_admin_scripts_js Enqueue Javascript for the given screen and Media View mode
  media_library_organizer_admin_scripts_js_ plugin_screen_name Enqueue Javascript for the given screen and Media View mode by Plugin Screen Name
  media_library_organizer_admin_scripts_css Enqueue Stylesheets (CSS) for the given screen and Media View mode
  media_library_organizer_admin_scripts_css_ plugin_screen_name Enqueue Stylesheets (CSS) for the given screen and Media View mode
  media_library_organizer_admin_menu_import_export
  media_library_organizer_admin_menu_support

media_library_organizer_admin_output_settings_panel_general /views/admin/settings-general.php::114

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_admin_output_settings_panel_general', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_admin_output_settings_panel_user_options /views/admin/settings-general.php::160

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_admin_output_settings_panel_user_options', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_admin_output_settings_panels /views/admin/settings-general.php::165

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_admin_output_settings_panels', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_import_view_ import_sourcename /views/admin/settings-import-export.php::70

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_import_view_  import_sourcename', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_editor_output_media_buttons /includes/global/editor.php::47

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_editor_output_media_buttons', function(  ) {
	// ... your code here
}, 10, 0 );


Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_shortcode_reregister_gallery_filters', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_frontend_enqueue_scripts /includes/global/frontend.php::48

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_frontend_enqueue_scripts', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_frontend_enqueue_css /includes/global/frontend.php::55

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_frontend_enqueue_css', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_media_output_list_table_filters /includes/global/media.php::164

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_media_output_list_table_filters', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_media_enqueue_js_css /includes/global/media.php::346

Overview

Enqueue JS and CSS for Media Views.

Parameters

Parameter Type Description
$ext string If defined, output minified JS and CSS

Usage

do_action( 'media_library_organizer_media_enqueue_js_css', function( $ext ) {
	// ... your code here
}, 10, 1 );


media_library_organizer_media_attachment_edit_form_fields /includes/global/media.php::775

Overview

Adds Meta Boxes to the Attachment Edit view.

Parameters

Parameter Type Description
$post WP_Post Attachment Post

Usage

do_action( 'media_library_organizer_media_attachment_edit_form_fields', function( $post ) {
	// ... your code here
}, 10, 1 );


media_library_organizer_media_attachment_save_fields /includes/global/media.php::795

Overview

Save Meta Box fields when saving an Attachment

Parameters

Parameter Type Description
$post WP_Post Attachment Post

Usage

do_action( 'media_library_organizer_media_attachment_save_fields', function( $post_id ) {
	// ... your code here
}, 10, 1 );


media_library_organizer_media_attachment_edit_modal_save_fields /includes/global/media.php::1090

Overview

Save form field data from the Attachment modal or Quick Edit Form against the Attachment.

Parameters

Parameter Type Description
$post array Attachment Post
$attachment array Attachment $_POST['attachment'] data (not used)
$_REQUEST array Form Fields Data

Usage

do_action( 'media_library_organizer_media_attachment_edit_modal_save_fields', function( $post, $attachment, $_REQUEST ) {
	// ... your code here
}, 10, 3 );


media_library_organizer_media_print_media_templates /includes/global/media.php::1112

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_media_print_media_templates', function(  ) {
	// ... your code here
}, 10, 0 );


Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_media_media_library_footer', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_user_options_delete_option /includes/global/user-option.php::125

Overview

Runs actions before a User option is deleted.

Parameters

Parameter Type Description
$user_id int User ID
$option_name string Option Name

Usage

do_action( 'media_library_organizer_user_options_delete_option', function( $user_id, $option_name ) {
	// ... your code here
}, 10, 2 );


media_library_organizer_upload_output_upload_ui /includes/global/upload.php::57

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_upload_output_upload_ui', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_upload_add_attachment /includes/global/upload.php::191

Overview

Allows Addons to run actions on an attachment that has just been uploaded to the WordPress Media Library

Parameters

Parameter Type Description
$attachment_id int Attachment ID

Usage

do_action( 'media_library_organizer_upload_add_attachment', function( $attachment_id ) {
	// ... your code here
}, 10, 1 );


media_library_organizer_filesystem_add_file_as_attachment_remove_actions /includes/global/filesystem.php::56

Parameters

Parameter Type Description
$file Unknown N/A
$post_id Unknown N/A

Usage

do_action( 'media_library_organizer_filesystem_add_file_as_attachment_remove_actions', function( $file, $post_id ) {
	// ... your code here
}, 10, 2 );


media_library_organizer_filesystem_add_file_as_attachment_restore_actions /includes/global/filesystem.php::81

Parameters

Parameter Type Description
$file Unknown N/A
$post_id Unknown N/A
$result Unknown N/A

Usage

do_action( 'media_library_organizer_filesystem_add_file_as_attachment_restore_actions', function( $file, $post_id, $result ) {
	// ... your code here
}, 10, 3 );


media_library_organizer_settings_delete_settings /includes/global/settings.php::245

Overview

Runs actions after a Settings Type is deleted.

Parameters

Parameter Type Description
$type string Setting Type (option key)

Usage

do_action( 'media_library_organizer_settings_delete_settings', function( $type ) {
	// ... your code here
}, 10, 1 );


media_library_organizer_notices_delete_notices /includes/admin/notices.php::324

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_notices_delete_notices', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_admin_scripts_js /includes/admin/admin.php::206

Overview

Enqueue Javascript for the given screen and Media View mode

Parameters

Parameter Type Description
$screen WP_Screen Current WordPress Screen object
$screens array Registered Plugin Screens (optional)
$mode string Media View Mode (list|grid)
$ext string If defined, load minified JS

Usage

do_action( 'media_library_organizer_admin_scripts_js', function( $screen, $screens, $mode, $ext ) {
	// ... your code here
}, 10, 4 );


media_library_organizer_admin_scripts_js_ plugin_screen_name /includes/admin/admin.php::219

Overview

Enqueue Javascript for the given screen and Media View mode by Plugin Screen Name

Parameters

Parameter Type Description
$screen WP_Screen Current WordPress Screen object
$screens array Registered Plugin Screens (optional)
$mode string Media View Mode (list|grid)
$ext string If defined, load minified JS

Usage

do_action( 'media_library_organizer_admin_scripts_js_  plugin_screen_name', function( $screen, $screens, $mode, $ext ) {
	// ... your code here
}, 10, 4 );


media_library_organizer_admin_scripts_css /includes/admin/admin.php::230

Overview

Enqueue Stylesheets (CSS) for the given screen and Media View mode

Parameters

Parameter Type Description
$screen WP_Screen Current WordPress Screen object
$screens array Registered Plugin Screens (optional)
$mode string Media View Mode (list|grid)

Usage

do_action( 'media_library_organizer_admin_scripts_css', function( $screen, $screens, $mode ) {
	// ... your code here
}, 10, 3 );


media_library_organizer_admin_scripts_css_ plugin_screen_name /includes/admin/admin.php::241

Overview

Enqueue Stylesheets (CSS) for the given screen and Media View mode

Parameters

Parameter Type Description
$screen WP_Screen Current WordPress Screen object
$screens array Registered Plugin Screens (optional)
$mode string Media View Mode (list|grid)

Usage

do_action( 'media_library_organizer_admin_scripts_css_  plugin_screen_name', function( $screen, $screens, $mode ) {
	// ... your code here
}, 10, 3 );


media_library_organizer_admin_menu_import_export /includes/admin/admin.php::345

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_admin_menu_import_export', function(  ) {
	// ... your code here
}, 10, 0 );


media_library_organizer_admin_menu_support /includes/admin/admin.php::350

Parameters

Parameter Type Description

Usage

do_action( 'media_library_organizer_admin_menu_support', function(  ) {
	// ... your code here
}, 10, 0 );