Media Library Organizer 2.1.8 has 31 actions and 101 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Media Library Organizer fires an action
add_action( 'media_library_organizer_admin_scripts_css', function( $screen, $screens, $mode ) {
// Your code runs here.
}, 10, 3 );
// Change a value Media Library Organizer is about to use
add_filter( 'media_library_organizer_tree_view_media_get_tree_view_taxonomy', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Defines the Taxonomy to display Terms for in the Tree View. */ apply_filters( 'media_library_organizer_tree_view_media_get_tree_view_taxonomy', 'mlo-category' ); -
/** * Save POSTed data on a Settings Screen */ apply_filters( 'media_library_organizer_admin_save_settings', true, $postdata ); -
/** * This filter is documented in wp-includes/category-template.php */ apply_filters( 'the_category', $category->name ); -
/** * Defines the data to include in the export file. Plugins hook into this to * define the data. */ apply_filters( "{str_replace('-','_',$this->plugin->name)}_export", $data, $_POST ); -
/** * Add any form options to the Export screen */ do_action( "{str_replace('-','_',$this->plugin->name)}_export_view" ); -
/** * Registers screen names that should add the wpzinc class to the <body> tag */ apply_filters( 'media_library_organizer_admin_body_class', $screens ); -
/** * Adjust the screen data immediately before returning. */ apply_filters( "media_library_organizer_admin_get_current_screen_{$screen}", $screens[ $screen ], $screen ); -
/** * Define tabs in the Plugin Settings section. */ apply_filters( 'media_library_organizer_admin_get_screen_tabs', $tabs, $screen ); -
/** * Define sections in the Plugin's Settings */ apply_filters( 'media_library_organizer_admin_get_screens', $screens ); -
/** * Saves Settings for a non-setting screen. */ apply_filters( "media_library_organizer_admin_save_settings_{$screen}", '', $postdata ); -
/** * Enqueue Stylesheets (CSS) for the given screen and Media View mode. */ do_action( 'media_library_organizer_admin_scripts_css', $screen, $screens, $mode ); -
media_library_organizer_admin_scripts_css_{$plugin_screen_name}
action Copy link Customise this hook/** * Enqueue Stylesheets (CSS) for the given screen and Media View mode. */ do_action( "media_library_organizer_admin_scripts_css_{$plugin_screen_name}", $screen, $screens, $mode ); -
/** * Enqueue Javascript for the given screen and Media View mode. */ do_action( 'media_library_organizer_admin_scripts_js', $screen, $screens, $mode, $ext ); -
/** * Enqueue Javascript for the given screen and Media View mode by Plugin Screen * Name. */ do_action( "media_library_organizer_admin_scripts_js_{$plugin_screen_name}", $screen, $screens, $mode, $ext ); -
/** * Defines the maximum time to allow the API request to run. */ apply_filters( 'media_library_organizer_api_set_timeout', $timeout ); -
media_library_organizer_auto_categorization_common_get_attribute_comparison_operators
filter Copy link Customise this hook/** * Defines the available Attachment Attribute comparison operators */ apply_filters( 'media_library_organizer_auto_categorization_common_get_attribute_comparison_operators', $comparison_operators ); -
media_library_organizer_auto_categorization_common_get_pass_rules
filter Copy link Customise this hook/** * Defines the available pass rule operator. */ apply_filters( 'media_library_organizer_auto_categorization_common_get_pass_rules', $pass_rules ); -
media_library_organizer_auto_categorization_common_get_rule_comparison_operators
filter Copy link Customise this hook/** * Defines the available Rule Comparison Operator */ apply_filters( 'media_library_organizer_auto_categorization_common_get_rule_comparison_operators', $comparison_operators ); -
media_library_organizer_common_get_attachment_display_settings_link_to
filter Copy link Customise this hook/** * Defines the available Attachment Display Settings: Link To options. */ apply_filters( 'media_library_organizer_common_get_attachment_display_settings_link_to', $options ); -
media_library_organizer_common_get_attachment_display_settings_size
filter Copy link Customise this hook/** * Defines the available WordPress registered Image Sizes. */ apply_filters( 'media_library_organizer_common_get_attachment_display_settings_size', $options ); -
/** * Defines the available Author options. */ apply_filters( 'media_library_organizer_common_get_author_options', $options ); -
/** * Defines the available file type options for WP_Query calls */ apply_filters( 'media_library_organizer_common_get_file_type_options', $options, $post_mime_types, $avail_post_mime_types ); -
/** * Defines the current Media View the user is on (either list or grid). */ apply_filters( 'media_library_organizer_common_get_media_view', $media_view ); -
/** * Defines the available comparison operator options. */ apply_filters( 'media_library_organizer_common_get_operator_options', $options ); -
/** * Defines the default order value for WP_Query queries */ apply_filters( 'media_library_organizer_common_get_order_default', $default ); -
/** * Defines the available WP_Query compatible order options. */ apply_filters( 'media_library_organizer_common_get_order_options', $options ); -
/** * Defines the default order_by value for WP_Query queries */ apply_filters( 'media_library_organizer_common_get_orderby_default', $default ); -
/** * Defines the available WP_Query compatible order by options. */ apply_filters( 'media_library_organizer_common_get_orderby_options', $options ); -
/** * Defines the available layout position options. */ apply_filters( 'media_library_organizer_common_get_position_options', $options ); -
/** * Defines the available hierarchical terms for the given Taxonomy. */ apply_filters( 'media_library_organizer_common_get_terms_hierarchical', $hierarchical_terms, $taxonomy, $hierarchy ); -
/** * Defines the temporary server folder location to use for file operations. */ apply_filters( 'media_library_organizer_common_get_tmp_folder', $temporary_folder, $sub_folder ); -
media_library_organizer_defaults_common_get_autocomplete_enabled_fields
filter Copy link Customise this hook/** * Defines an array of Javascript DOM selectors to enable the keyword * autocomplete functionality on. */ apply_filters( 'media_library_organizer_defaults_common_get_autocomplete_enabled_fields', $fields ); -
/** * Determines if a rule passes or fails. */ apply_filters( 'media_library_organizer_defaults_ruleset_rule_passed', true, $rule_comparison, $value, $rule_value ); -
media_library_organizer_defaults_ruleset_ruleset_passed_field_value
filter Copy link Customise this hook/** * Fetch the attachment value to test against the rule. */ apply_filters( 'media_library_organizer_defaults_ruleset_ruleset_passed_field_value', '', $field, $rule, $attachment, $attachment_id ); -
/** * Filter the default settings for the Defaults Addon */ apply_filters( 'media_library_organizer_defaults_settings_get_default_settings', $defaults['defaults'] ); -
media_library_organizer_defaults_settings_make_rulesets_associative_{$file_type}
filter Copy link Customise this hook/** * Makes the given Defaults' File Type Rulesets associative e.g. * $rulesets[alt_text][0] --> $rulesets[0][alt_text] */ apply_filters( "media_library_organizer_defaults_settings_make_rulesets_associative_{$file_type}", $associative_ruleset, $rulesets, $index ); -
/** * Default fields. */ apply_filters( "media_library_organizer_defaults_settings_output_{$file_type}", $fields ); -
media_library_organizer_defaults_upload_apply_defaults_{$file_type}
action Copy link Customise this hook/** * Applies the given default values to the given Attachment */ do_action( "media_library_organizer_defaults_upload_apply_defaults_{$file_type}", $defaults, $attachment ); -
/** * Returns an array of tags that can be used as an attribute's value. Tags are * then dynamically replaced with file data. */ apply_filters( 'media_library_organizer_dynamic_tags_get', $tags ); -
media_library_organizer_dynamic_tags_register_all_possible_searches_replacements
filter Copy link Customise this hook/** * Register tags and their replacement values for the given Attachment. */ apply_filters( 'media_library_organizer_dynamic_tags_register_all_possible_searches_replacements', $searches_replacements, $post ); -
media_library_organizer_dynamic_tags_register_author_searches_replacements
filter Copy link Customise this hook/** * Registers tags and their data replacements for the given Attachment's * author. */ apply_filters( 'media_library_organizer_dynamic_tags_register_author_searches_replacements', $searches_replacements, $author ); -
media_library_organizer_dynamic_tags_register_filename_searches_replacements
filter Copy link Customise this hook/** * Registers tags and their data replacements for the given Attachment's * filename. */ apply_filters( 'media_library_organizer_dynamic_tags_register_filename_searches_replacements', $searches_replacements, $post ); -
/** * Outputs buttons above TinyMCE Editor instances. */ do_action( 'media_library_organizer_editor_output_media_buttons' ); -
media_library_organizer_filesystem_add_file_as_attachment_remove_actions
action Copy link Customise this hook/** * Action hook to remove filters / actions that would interfere with * sideloading (e.g. unzipping a sideloaded zip file upload, which we don't * want to do). */ do_action( 'media_library_organizer_filesystem_add_file_as_attachment_remove_actions', $file, $post_id ); -
media_library_organizer_filesystem_add_file_as_attachment_restore_actions
action Copy link Customise this hook/** * Action hook to restore filters / actions that might have been disabled on * the media_library_organizer_filesystem_add_file_as_attachment_remove_actions * action. */ do_action( 'media_library_organizer_filesystem_add_file_as_attachment_restore_actions', $file, $post_id, $result ); -
/** * Enqueue CSS */ do_action( 'media_library_organizer_frontend_enqueue_css' ); -
/** * Enqueue Javascript */ do_action( 'media_library_organizer_frontend_enqueue_scripts' ); -
/** * Filters the Import Sources that this Plugin can import from. */ apply_filters( 'media_library_organizer_import_background_sources', $sources ); -
/** * Filters whether the current request is a WordPress Administration / Frontend * Editor request or not. */ apply_filters( 'media_library_organizer_is_admin_or_frontend_editor', $is_admin_or_frontend_editor, $request ); -
/** * Adds Meta Boxes to the Attachment Edit view. */ do_action( 'media_library_organizer_media_attachment_edit_form_fields', $post ); -
media_library_organizer_media_attachment_edit_modal_form_fields
filter Copy link Customise this hook/** * Defines the fields to display when editing an Attachment in the modal. */ apply_filters( 'media_library_organizer_media_attachment_edit_modal_form_fields', $form_fields, $post ); -
media_library_organizer_media_attachment_edit_modal_save_fields
action Copy link Customise this hook/** * Save form field data from the Attachment modal or Quick Edit Form against * the Attachment. */ do_action( 'media_library_organizer_media_attachment_edit_modal_save_fields', $post, $attachment, $request ); -
/** * Save Meta Box fields when saving an Attachment */ do_action( 'media_library_organizer_media_attachment_save_fields', $post_id ); -
/** * Defines the Columns to display in the List View WP_List_Table. */ apply_filters( 'media_library_organizer_media_define_list_view_columns', $columns, $is_detached ); -
/** * Defines the data to display in the List View WP_List_Table Column, for the * given column and Attachment. */ apply_filters( 'media_library_organizer_media_define_list_view_columns_output', $output, $column_name, $id ); -
media_library_organizer_media_define_list_view_columns_output_{$column_name}
filter Copy link Customise this hook/** * Defines the data to display in the List View WP_List_Table Column, for the * given column and Attachment. */ apply_filters( "media_library_organizer_media_define_list_view_columns_output_{$column_name}", $output, $id ); -
/** * Enqueue JS and CSS for Media Views. */ do_action( 'media_library_organizer_media_enqueue_js_css', $ext ); -
media_library_organizer_media_enqueue_js_css_selectize_selectors
filter Copy link Customise this hook/** * Defines the selectize DOM selectors for various Selectize JS instances, such * as Simple and AJAX implementations. */ apply_filters( 'media_library_organizer_media_enqueue_js_css_selectize_selectors', $selectize_selectors ); -
/** * Defines the arguments used when querying for Media in the Media List View. */ apply_filters( 'media_library_organizer_media_filter_attachments', $query, $request ); -
/** * Defines the arguments used when querying for Media in the Media Grid View. */ apply_filters( 'media_library_organizer_media_filter_attachments_grid', $args, $query ); -
media_library_organizer_media_filter_attachments_list_file_type
filter Copy link Customise this hook/** * Filter Attachments by File Type, if a Filter has not yet been applied. */ apply_filters( 'media_library_organizer_media_filter_attachments_list_file_type', $query, $file_type ); -
/** * Filters Attachments in both List and Grid views by allowing the WHERE clause * to be altered */ apply_filters( 'media_library_organizer_media_filter_attachments_where_clause', $where, $query ); -
/** * Outputs Taxonomy Filters and Sorting in the Attachment WP_List_Table */ do_action( 'media_library_organizer_media_output_list_table_filters' ); -
media_library_organizer_media_output_list_table_filters_taxonomy
filter Copy link Customise this hook/** * Filters the HTML output produced by wp_dropdown_categories() in the Media * Library List View immediately before it's output. */ apply_filters( 'media_library_organizer_media_output_list_table_filters_taxonomy', $output, $args ); -
media_library_organizer_media_output_list_table_filters_taxonomy_filter_args
filter Copy link Customise this hook/** * Define the wp_dropdown_categories() compatible arguments for the Media * Categories Taxonomy Filter in the Media Library List View */ apply_filters( 'media_library_organizer_media_output_list_table_filters_taxonomy_filter_args', $taxonomy_filter_args, $taxonomy_name ); -
/** * Register Backbone Views for wp.media.Modal */ do_action( 'media_library_organizer_media_print_media_templates' ); -
/** * Whether to show Attachment counts for Terms on Taxonomy select dropdowns. */ apply_filters( 'media_library_organizer_media_show_attachment_count', $show_attachment_count, $screen ); -
/** * Defines all file types */ apply_filters( 'media_library_organizer_mime_get_all_file_types', $file_types ); -
/** * Defines archive file types */ apply_filters( 'media_library_organizer_mime_get_archive_file_types', $file_types ); -
/** * Defines audio file types */ apply_filters( 'media_library_organizer_mime_get_audio_file_types', $file_types ); -
/** * Defines image types */ apply_filters( 'media_library_organizer_mime_get_document_file_types', $file_types ); -
/** * Defines top level file types, such as Images, Videos, Audio and Documents. */ apply_filters( 'media_library_organizer_mime_get_file_types', $file_types ); -
/** * Defines image file types */ apply_filters( 'media_library_organizer_mime_get_image_file_types', $file_types ); -
/** * Defines image types */ apply_filters( 'media_library_organizer_mime_get_presentation_file_types', $file_types ); -
/** * Defines image types */ apply_filters( 'media_library_organizer_mime_get_spreadsheet_file_types', $file_types ); -
/** * Defines text file types */ apply_filters( 'media_library_organizer_mime_get_text_file_types', $file_types ); -
/** * Defines video file types */ apply_filters( 'media_library_organizer_mime_get_video_file_types', $file_types ); -
/** * Runs actions immediately after all notices are deleted / cleared from the * transients data. */ do_action( 'media_library_organizer_notices_delete_notices' ); -
/** * Filters the error notices to return. */ apply_filters( 'media_library_organizer_notices_get_error_notices', $error_notices ); -
/** * Filters the success and error notices to return. */ apply_filters( 'media_library_organizer_notices_get_notices', $notices ); -
/** * Filters the success notices to return. */ apply_filters( 'media_library_organizer_notices_get_success_notices', $success_notices ); -
/** * Filters the success and error notices to save. */ apply_filters( 'media_library_organizer_notices_save', $notices ); -
media_library_organizer_output_media_get_supported_list_view_columns
filter Copy link Customise this hook/** * Returns List View columns that are supported for the Media Library List * View, which the user can enable or disable in the Plugin's Settings. */ apply_filters( 'media_library_organizer_output_media_get_supported_list_view_columns', $columns ); -
/** * Filters the setting data just before it is deleted. */ apply_filters( 'media_library_organizer_settings_delete_setting', $settings, $type, $key ); -
/** * Runs actions after a Settings Type is deleted. */ do_action( 'media_library_organizer_settings_delete_settings', $type ); -
/** * Defines the default settings for the given type. */ apply_filters( 'media_library_organizer_settings_get_default_settings', $defaults, $type ); -
/** * Filters the settings data for the given setting type and key before it is * returned. */ apply_filters( 'media_library_organizer_settings_get_setting', $setting, $type, $key ); -
/** * Filters the settings data for the given setting type before it is returned. */ apply_filters( 'media_library_organizer_settings_get_settings', $settings, $type ); -
/** * Defines the setting data just before it is saved for the given type and key. */ apply_filters( 'media_library_organizer_settings_update_setting', $value, $type, $key ); -
/** * Defines the settings data just before it is saved for the given type. */ apply_filters( 'media_library_organizer_settings_update_settings', $settings, $type ); -
/** * Allows Addons to modify the [gallery] shortcode HTML */ apply_filters( 'media_library_organizer_shortcode_output_gallery', $output, $atts, $instance ); -
/** * Registers shortcodes. */ apply_filters( 'media_library_organizer_shortcode_register', $shortcodes ); -
/** * Defines Taxonomies to Register against Attachments */ apply_filters( 'media_library_organizer_taxonomies_register', $taxonomies ); -
/** * Defines the parameters for registering the Media Categories Taxonomy */ apply_filters( 'media_library_organizer_taxonomy_register_taxonomy', $args, $taxonomy_name ); -
/** * Defines the AJAX actions supported by the Tree View. Any context menu items * should have a corresponding action defined here. */ apply_filters( 'media_library_organizer_tree_view_media_actions', $actions ); -
/** * Allows Addons to run actions on an attachment that has just been uploaded to * the WordPress Media Library */ do_action( 'media_library_organizer_upload_add_attachment', $attachment_id ); -
media_library_organizer_upload_filter_existing_attachment_data_before_save
filter Copy link Customise this hook/** * Filters attachment post data for an existing Attachment before it is saved * to the WordPress Media Library. */ apply_filters( 'media_library_organizer_upload_filter_existing_attachment_data_before_save', $data, $unprocessed_data, $data['ID'] ); -
media_library_organizer_upload_filter_new_attachment_data_before_save
filter Copy link Customise this hook/** * Filters attachment post data before a new Attachment is saved to the * WordPress Media Library. */ apply_filters( 'media_library_organizer_upload_filter_new_attachment_data_before_save', $data, $unprocessed_data ); -
/** * Allows Addons to output after the HTML and JS uploaders at Media > Add New */ do_action( 'media_library_organizer_upload_output_after_upload_ui' ); -
/** * Allows Addons to output before the HTML and JS uploaders at Media > Add New */ do_action( 'media_library_organizer_upload_output_before_upload_ui' ); -
/** * Define the pluploader's options. */ apply_filters( 'media_library_organizer_upload_plupload_options', $options ); -
/** * Filter the default value returned for a User Option, when no saved option * value exists. */ apply_filters( 'media_library_organizer_user_option_get_default_option', $default, $option_name ); -
/** * Filter the default options to be applied where no saved option value exists. */ apply_filters( 'media_library_organizer_user_option_get_default_options', $defaults ); -
/** * Filter the value returned for a User Option. */ apply_filters( 'media_library_organizer_user_option_get_option', $value, $option_name, $user_id ); -
/** * Filter the value just before saving a User Option. */ apply_filters( 'media_library_organizer_user_option_update_option', $value, $option_name, $user_id ); -
/** * Runs actions before a User option is deleted. */ do_action( 'media_library_organizer_user_options_delete_option', $user_id, $option_name ); -
/** * Fires after an attachment file has been replaced. */ do_action( 'mlo_attachment_replaced', $this->attachment_id ); -
/** * Filter the body classes to output on the <body> tag. */ apply_filters( 'wpzinc_admin_body_class', $screens, $classes ); -
/** * Filter the action links. */ apply_filters( 'wpzinc_dashboard_add_action_link', $links, $this->plugin->name, $this->plugin ); -
/** * Filter the deactivation reasons. */ apply_filters( 'wpzinc_dashboard_output_deactivation_modal_reasons', $reasons, $this->plugin->name, $this->plugin ); -
/** * Defines an array of third party minification Plugins that, if activate, will * result in this Plugin's JS non-minified files being loaded. */ apply_filters( 'wpzinc_dashboard_should_load_minified_js_plugins', $minification_plugins ); -
apply_filters( 'wp_delete_file', $original_file ); -
apply_filters( "{str_replace('-','_',$this->plugin->name)}_import", $result, $import ); -
apply_filters( "{str_replace('-','_',$this->plugin->name)}_import_sources", array() ); -
apply_filters( "{str_replace('-','_',$this->plugin->name)}_import_third_party", $result, $_POST ); -
apply_filters( 'image_size_names_choose', array( 'thumbnail' => __( 'Thumbnail', 'media-library-organizer' ), 'medium' => __( 'Medium', 'media-library-organizer' ), 'large' => __( 'Large', 'media-library-organizer' ), 'full' => __( 'Full Size', 'media-library-organizer' ), ) ); -
do_action( 'media_library_organizer_admin_output_settings_panels' ); -
media_library_organizer_common_get_attachment_display_settings_alignment
filter Copy link Customise this hookapply_filters( 'media_library_organizer_common_get_attachment_display_settings_alignment', $options ); -
apply_filters( 'media_library_organizer_defaults_fields', array() ); -
do_action( "media_library_organizer_import_view_{$import_source['name']}" ); -
apply_filters( 'media_library_organizer_localize_settings', $settings ); -
apply_filters( 'media_library_organizer_output_settings', $sidebar_settigs ); -
do_action( 'media_library_organizer_shortcode_reregister_gallery_filters' ); -
apply_filters( 'product_mlo_license_plan', 0 ); -
do_action( 'themeisle_internal_page', 'mlo', 'dashboard' );
Generated from Media Library Organizer's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: