Actions and Filters

Filters

File Filter Name Description
/includes/global/class-media-library-organizer-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.
  media_library_organizer_media_show_attachment_count Whether to show Attachment counts for Terms on Taxonomy
/includes/global/class-media-library-organizer-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/global/class-media-library-organizer-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/class-media-library-organizer-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/class-media-library-organizer-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/class-media-library-organizer-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/class-media-library-organizer-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/class-media-library-organizer-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/class-media-library-organizer-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/class-media-library-organizer-filesystem.php
  media_library_organizer_common_get_tmp_folder Defines the temporary server folder location to use for file operations.
/includes/admin/class-media-library-organizer-api.php
  media_library_organizer_api_set_timeout Defines the maximum time to allow the API request to run.
/includes/admin/class-media-library-organizer-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/class-media-library-organizer-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/class-media-library-organizer-admin-ajax.php
  media_library_organizer_admin_save_settings
/includes/class-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.
/addons/tree-view/includes/global/class-media-library-organizer-tree-view-media.php
  media_library_organizer_tree_view_media_context_menu Defines the menu items for the Tree View's Context Menu, triggered when a user right clicks on a Category in the Tree View.
  media_library_organizer_tree_view_media_actions Defines the AJAX actions supported by the Tree View. Any context menu items should have a corresponding action defined here.
  media_library_organizer_tree_view_media_get_tree_view_taxonomy Defines the Taxonomy to display Terms for in the Tree View.

media_library_organizer_media_output_list_table_filters_taxonomy_filter_args /includes/global/class-media-library-organizer-media.php::222

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/class-media-library-organizer-media.php::258

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/class-media-library-organizer-media.php::407

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/class-media-library-organizer-media.php::443

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/class-media-library-organizer-media.php::475

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/class-media-library-organizer-media.php::487

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/class-media-library-organizer-media.php::556

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/class-media-library-organizer-media.php::647

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/class-media-library-organizer-media.php::743

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 Sanitized $_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/class-media-library-organizer-media.php::774

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/class-media-library-organizer-media.php::874

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_media_show_attachment_count /includes/global/class-media-library-organizer-media.php::1360

Overview

Whether to show Attachment counts for Terms on Taxonomy