MediaPress 1.6.3 has 179 actions and 198 filters, read directly from its source code on Nov 18, 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 MediaPress fires an action
add_action( 'bp_activity_posted_update', function( $r, $r2, $activity_id ) {
// Your code runs here.
}, 10, 3 );
// Change a value MediaPress is about to use
add_filter( 'bp_activity_custom_update', function( $value, $object, $item_id, $_POST ) {
// Change $value here.
return $value;
}, 10, 4 );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
-
/** * This filter is documented in bp-activity/bp-activity-actions.php */ apply_filters( 'bp_activity_custom_update', false, $object, $item_id, $_POST['content'] ); -
/** * Filters the latest update content for the activity item. */ apply_filters( 'bp_activity_latest_update_content', $r['content'], $activity_content ); -
/** * Filters the new activity content for current activity item. */ apply_filters( 'bp_activity_new_update_content', $activity_content ); -
/** * Filters the activity primary link for current activity item. */ apply_filters( 'bp_activity_new_update_primary_link', $primary_link ); -
/** * Fires at the end of an activity post update, before returning the updated * activity item ID. */ do_action( 'bp_activity_posted_update', $r['content'], $r['user_id'], $activity_id ); -
/** * Filters the closing tag for the template that list activity comments. */ apply_filters( 'bp_activity_recurse_comments_end_ul', '</ul>' ); -
/** * Filters the opening tag for the template that lists activity comments. */ apply_filters( 'bp_activity_recurse_comments_start_ul', '<ul>' ); -
/** * Fires after posting of an Activity status update affiliated with a group. */ do_action( 'bp_groups_posted_update', $r['content'], $user_id, $group_id, $activity_id ); -
/** * Filters whether or not an AJAX post update is private. */ apply_filters( 'bp_nouveau_ajax_post_update_is_private', $is_private ); -
/** * Filter the list of terms attached to the given post. */ apply_filters( 'get_the_terms', $terms, $object, $taxonomy ); -
/** * Filters the action for the new group activity update. */ apply_filters( 'groups_activity_new_update_action', $activity_action ); -
/** * Filters the content for the new group activity update. */ apply_filters( 'groups_activity_new_update_content', $activity_content ); -
/** * This filter is documented in wp-includes/media.php */ apply_filters( 'image_downsize', false, $attachment->ID, $size ); -
/** * This filter is documented in wp-admin/includes/media.php */ apply_filters( 'image_size_names_choose', array( 'thumbnail' => __( 'Thumbnail' ), 'medium' => __( 'Medium' ), 'large' => __( 'Large' ), 'full' => __( 'Full Size' ), ) ); -
/** * Fires after the activity entry comment form. */ do_action( 'mpp_activity_entry_comments' ); -
/** * Fires after the display of an activity entry content. */ do_action( 'mpp_activity_entry_content' ); -
/** * Fires after the display of an activity comment. */ do_action( 'mpp_after_activity_comment' ); -
/** * Fires after the display of an activity entry. */ do_action( 'mpp_after_activity_entry' ); -
/** * Fires after the display of the activity entry comments. */ do_action( 'mpp_after_activity_entry_comments' ); -
/** * MediaPress Activity Comment template Used on single media/single gallery and * lightbox to show the media/gallery activity */ do_action( 'mpp_before_activity_comment' ); -
/** * MediaPress - Activity Stream (Single Item like media, gallery or inside the * lightbox) */ do_action( 'mpp_before_activity_entry' ); -
/** * Action 'mpp_before_media_delete' fires before WordPress starts deleting an * attachment which is a valid media( in MediaPress). Any plugin utilizing this * action can access the fully functional media object by using mpp_get_media() * on the passed media id */ do_action( 'mpp_before_media_delete', $media_id ); -
/** * Filter a comment's data before it is sanitized and inserted into the * database. */ apply_filters( 'preprocess_comment', $commentdata ); -
do_action( 'mpp_type_icon', mpp_get_gallery_type(), mpp_get_gallery() ); -
do_action( 'mpp_media_meta' ); -
do_action( 'mpp_media_meta_top' ); -
do_action( 'mpp_after_activity_loop' ); -
do_action( 'mpp_before_activity_loop' ); -
do_action( 'mpp_after_media_item' ); -
do_action( 'mpp_after_media_shortcode_item' ); -
do_action( 'mpp_before_media_item' ); -
do_action( 'mpp_before_media_shortcode_item' ); -
do_action( 'mpp_after_media_widget_item' ); -
do_action( 'mpp_before_media_widget_item' ); -
do_action( 'mpp_media_shortcode_item_meta' ); -
do_action( 'mpp_media_shortcode_item_meta_top' ); -
do_action( 'mpp_media_widget_item_meta' ); -
do_action( 'mpp_media_widget_item_meta_top' ); -
do_action( 'mpp_after_widget_playlist', $ids ); -
do_action( 'mpp_before_widget_playlist', $ids ); -
do_action( 'mpp_after_single_gallery' ); -
do_action( 'mpp_after_single_gallery_activity' ); -
do_action( 'mpp_after_single_gallery_pagination' ); -
do_action( 'mpp_after_single_media_content' ); -
do_action( 'mpp_after_single_media_item' ); -
do_action( 'mpp_after_single_media_title' ); -
do_action( 'mpp_before_single_gallery' ); -
do_action( 'mpp_before_single_media_content' ); -
do_action( 'mpp_before_single_media_item' ); -
apply_filters( 'mpp_get_gallery_management_template', $template ); -
apply_filters( 'mpp_get_media_management_template', $template ); -
apply_filters( 'mpp_template_user_galleries', 'members/single/plugins' ); -
do_action( 'gallery_screen_single_gallery' ); -
do_action( 'mpp_after_bulkedit_media_list' ); -
do_action( 'mpp_after_create_gallery_form' ); -
do_action( 'mpp_after_create_gallery_form_fields' ); -
do_action( 'mpp_after_edit_gallery_form_fields' ); -
do_action( 'mpp_after_lightbox_media', $media ); -
do_action( 'mpp_after_media_bulkedit_actions' ); -
do_action( 'mpp_after_media_playlist' ); -
do_action( 'mpp_after_sortable_media_form' ); -
do_action( 'mpp_after_sortable_media_item' ); -
do_action( 'mpp_before_bulkedit_media_form' ); -
do_action( 'mpp_before_bulkedit_media_list' ); -
do_action( 'mpp_before_create_gallery_form' ); -
do_action( 'mpp_before_create_gallery_form_fields' ); -
do_action( 'mpp_before_create_gallery_form_submit_field' ); -
do_action( 'mpp_before_edit_gallery_form_fields', $gallery->id ); -
do_action( 'mpp_before_gallery_title' ); -
do_action( 'mpp_before_gallery_type_icon' ); -
do_action( 'mpp_before_lightbox_media', $media ); -
do_action( 'mpp_before_media_playlist' ); -
do_action( 'mpp_before_sortable_media_form' ); -
do_action( 'mpp_before_sortable_media_item' ); -
do_action( 'mpp_directory_types' ); -
do_action( 'mpp_gallery_created', $post_id ); -
do_action( 'mpp_gallery_directory_order_options' ); -
apply_filters( 'mpp_get_gallery_permalink', trailingslashit( $base_url . $slug ), $gallery ); -
apply_filters( 'mpp_get_sitewide_gallery_template', $template ); -
apply_filters( 'mpp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type, ), 'upload' ); -
do_action( 'mpp_lightbox_media_meta', $media ); -
do_action( 'mpp_lightbox_media_meta_top', $media ); -
do_action( 'mpp_load_gallery_management_template' ); -
do_action( 'mpp_load_media_management_template' ); -
do_action_ref_array( 'mpp_media_loop_start', array( &$this ) ); -
apply_filters( 'mpp-edit-gallery-field-validation', $errors, $_POST ); -
do_action( 'bp_activity_post_form_options' ); -
do_action( 'bp_before_directory_mediapress_items' ); -
do_action( 'bp_before_directory_mediapress_page' ); -
do_action( 'gallery_screen_create_gallery' ); -
do_action( 'gallery_screen_my_galleries' ); -
apply_filters( 'mmp_get_template_dir_name', 'mediapress/default' ); -
do_action( 'mpp_actions' ); -
apply_filters( 'mpp_activity_action_media_upload', $action, $activity, $media_id, $media_ids, $gallery ); -
do_action( 'mpp_activity_comment_options' ); -
do_action( 'mpp_activity_entry_meta' ); -
apply_filters( 'mpp_activity_get_attached_media_ids', bp_activity_get_meta( $activity_id, '_mpp_attached_media_id', false ), $activity_id ); -
do_action( 'mpp_activity_media_marked_attached', $media_ids ); -
do_action( 'mpp_admin_debug_extra' ); -
do_action( "mpp_admin_edit_panel_after_tab_{$tab['id']}" ); -
do_action( "mpp_admin_edit_panel_before_tab_{$tab['id']}" ); -
do_action( 'mpp_admin_enqueue_scripts' ); -
do_action( 'mpp_admin_loaded' ); -
do_action( 'mpp_admin_register_settings', $page ); -
do_action( "mpp_admin_settings_form_bottom_{$section_id}", $section ); -
do_action( "mpp_admin_settings_form_top_{$section_id}", $section ); -
do_action( 'mpp_after_404' ); -
do_action( 'mpp_after_activity_post_form' ); -
do_action( 'mpp_after_activity_upload_buttons' ); -
do_action( 'mpp_after_activity_upload_dropzone' ); -
do_action( 'mpp_after_activity_upload_feedback' ); -
do_action( 'mpp_after_activity_upload_medialist' ); -
do_action( 'mpp_after_bulk_edit_media_item_form_fields' ); -
do_action( 'mpp_after_bulk_edit_media_item_thumbnail' ); -
do_action( 'mpp_after_directory_gallery' ); -
do_action( 'mpp_after_directory_gallery_content' ); -
do_action( 'mpp_after_directory_gallery_page' ); -
do_action( 'mpp_after_edit_media_form_fields' ); -
do_action( 'mpp_after_edit_media_item_form_fields' ); -
do_action( 'mpp_after_edit_media_item_thumbnail' ); -
do_action( 'mpp_after_edit_media_thumbnail_field', $media->id ); -
do_action( 'mpp_after_gallery_entry' ); -
do_action( 'mpp_after_gallery_query', $this, $args ); -
do_action( 'mpp_after_gallery_shortcode_entry' ); -
do_action( 'mpp_after_gallery_upload_dropzone' ); -
do_action( 'mpp_after_gallery_upload_feedback' ); -
do_action( 'mpp_after_gallery_upload_medialist' ); -
do_action( 'mpp_after_gallery_widget_entry' ); -
do_action( 'mpp_after_lightbox_edit_media_form_fields' ); -
do_action( 'mpp_after_lightbox_media_activity', $media ); -
do_action( 'mpp_after_media_activity_item' ); -
do_action( 'mpp_after_media_query', $this, $args ); -
do_action( 'mpp_after_setup_theme' ); -
do_action( 'mpp_after_shortcode_upload_dropzone' ); -
do_action( 'mpp_after_shortcode_upload_feedback' ); -
do_action( 'mpp_after_shortcode_upload_medialist' ); -
do_action( 'mpp_after_template_part', $template_name, $located, $args ); -
apply_filters( 'mpp_allowed_space', $space_allowed, $component, $component_id ); -
do_action( 'mpp_before_404' ); -
do_action( 'mpp_before_activity_entry_comments' ); -
do_action( 'mpp_before_activity_post_form' ); -
do_action( 'mpp_before_activity_upload_buttons' ); -
do_action( 'mpp_before_bulk_edit_media_item_form_fields' ); -
do_action( 'mpp_before_bulk_edit_media_item_thumbnail' ); -
do_action( 'mpp_before_directory_gallery_tabs' ); -
do_action( 'mpp_before_edit_gallery_form_submit_field' ); -
do_action( 'mpp_before_edit_media_form_fields', $media->id ); -
do_action( 'mpp_before_edit_media_item_form_fields' ); -
do_action( 'mpp_before_edit_media_item_thumbnail' ); -
do_action( 'mpp_before_edit_media_thumbnail_field', $media->id ); -
do_action( 'mpp_before_gallery_actions' ); -
do_action( 'mpp_before_gallery_delete', $gallery_id ); -
do_action( 'mpp_before_gallery_entry' ); -
do_action( 'mpp_before_gallery_query', $this, $args ); -
do_action( 'mpp_before_gallery_shortcode_entry' ); -
do_action( 'mpp_before_gallery_widget_entry' ); -
do_action( 'mpp_before_lightbox_media_activity', $media ); -
do_action( 'mpp_before_media_activity_item' ); -
do_action( 'mpp_before_media_query', $this, $args ); -
do_action( 'mpp_before_template_part', $template_name, $located, $args ); -
do_action( 'mpp_buddypress_module_loaded' ); -
apply_filters( "mpp_can_user_upload_to_{$component}", $can_do, $component_id, $gallery ); -
apply_filters( 'mpp_check_followers_access', $allow, $component_type, $component_id, $user_id ); -
apply_filters( 'mpp_check_following_access', $allow, $component_type, $component_id, $user_id ); -
apply_filters( 'mpp_check_friends_access', $allow, $component_type, $component_id, $user_id ); -
apply_filters( 'mpp_check_groups_access', $allow, $component_type, $component_id, $user_id ); -
apply_filters( 'mpp_check_loggedin_access', $allow, $component_type, $component_id, $user_id ); -
apply_filters( 'mpp_check_private_access', $allow, $component_type, $component_id, $user_id ); -
apply_filters( 'mpp_check_public_access', true, $component_type, $component_id, $user_id ); -
apply_filters( 'mpp_cleanup_single_media_on_delete', true, $media_id, $gallery_id ); -
do_action( 'mpp_comment_added', $comment_ID, $commentdata['comment_approved'] ); -
do_action( 'mpp_core_render_feedback' ); -
apply_filters( 'mpp_core_render_feedback_content', $mp->template_message, $type ); -
apply_filters( 'mpp_default_cover_file_name', $default_image, $cover_type, $gallery ); -
apply_filters( 'mpp_default_media_cover_file_name', $default_image, $cover_type, $media ); -
apply_filters( 'mpp_delete_gallery_redirect_location', mpp_get_gallery_base_url( $gallery->component, $gallery->component_id ), $gallery ); -
do_action( 'mpp_delete_wall_gallery_id', $id, $component_id, $component, $media_type ); -
do_action( 'mpp_directory_gallery_content' ); -
apply_filters( 'mpp_directory_gallery_search_form', $search_form_html ); -
apply_filters( 'mpp_do_not_record_add_media_activity', false ); -
apply_filters( 'mpp_do_not_record_create_gallery_activity', false ); -
apply_filters( 'mpp_doc_viewable', $viewable, $media ); -
apply_filters( 'mpp_doc_viewer_enabled', $enabled, $media ); -
apply_filters( 'mpp_doc_viewer_supported_types', $supported, $viewer, $ext ); -
do_action( 'mpp_enqueue_scripts' ); -
apply_filters( 'mpp_file_upload_enabled', mpp_get_option( 'enable_file_upload', 1 ), $context ); -
apply_filters( 'mpp_forbidden_names', array( 'gallery', 'galleries', 'my-gallery', 'create', 'delete', 'upload', 'add', 'edit', 'admin', 'request', 'upload', 'tags', 'audio', 'video', 'photo', ) ); -
apply_filters( 'mpp_format_activity_action_media_upload', $action, $activity, $media_id, $media_ids ); -
do_action( 'mpp_format_notifications', $action, $item_id, $secondary_item_id, $total_items, $return ); -
apply_filters( 'mpp_gallery_actions_links', join( ' ', $links ), $links, $gallery ); -
apply_filters( 'mpp_gallery_auto_update_cover', true, $gallery ); -
do_action( 'mpp_gallery_delete_form_fields' ); -
do_action( 'mpp_gallery_deleted', $gallery_id ); -
apply_filters( 'mpp_gallery_do_record_activity', true, $args ); -
apply_filters( 'mpp_gallery_html_attributes_pre', $args ); -
do_action_ref_array( 'mpp_gallery_loop_start', array( &$this ) ); -
do_action( 'mpp_gallery_meta' ); -
do_action( 'mpp_gallery_meta_top' ); -
apply_filters( 'mpp_gallery_post_type_rewrite_slug', $slug ); -
apply_filters( 'mpp_gallery_publish_activity_url', $link, $gallery ); -
do_action( 'mpp_gallery_screen_directory' ); -
apply_filters( 'mpp_gallery_screen_directory', 'mediapress/directory/index-full' ); -
do_action( 'mpp_gallery_shortcode_item_meta' ); -
do_action( 'mpp_gallery_shortcode_item_meta_top' ); -
apply_filters( 'mpp_gallery_unpublish_media_delete_url', $link, $gallery ); -
do_action( 'mpp_gallery_updated', $gallery_id ); -
do_action( 'mpp_gallery_widget_item_meta' ); -
do_action( 'mpp_gallery_widget_item_meta_top' ); -
apply_filters( 'mpp_generate_metadata', $metadata, $attachment_id ); -
mpp_get_accessible_{strtolower($component_type)}_gallery_statuses
filter Copy link Customise this hookapply_filters( "mpp_get_accessible_{strtolower($component_type)}_gallery_statuses", $allowed_status, $component_id, $user_id ); -
apply_filters( 'mpp_get_activity_view', $view, $type ); -
apply_filters( 'mpp_get_all_taxonomies', array( mpp_get_status_taxname(), mpp_get_type_taxname(), mpp_get_component_taxname(), ) ); -
apply_filters( 'mpp_get_asset_url', $url, $rel_path ); -
apply_filters( 'mpp_get_comment_content', stripslashes( $comment->content ), $comment->id ); -
apply_filters( 'mpp_get_comment_date', date_i18n( get_option( 'date_format' ), $comment->date_posted ), $comment->id ); -
apply_filters( 'mpp_get_comment_id', $comment->id ); -
apply_filters( 'mpp_get_comment_user_domain', $comment->user_domain, $comment->id ); -
apply_filters( 'mpp_get_comment_user_id', $comment->user_id, $comment->id ); -
apply_filters( 'mpp_get_context_gallery', $gallery, $args ); -
apply_filters( 'mpp_get_current_component', $component ); -
apply_filters( 'mpp_get_current_component_id', $owner_id ); -
mpp_get_current_user_{strtolower($component_type)}_gallery_access
filter Copy link Customise this hookapply_filters( "mpp_get_current_user_{strtolower($component_type)}_gallery_access", array( 'public' ), $component_id, $gallery_id ); -
apply_filters( 'mpp_get_default_storage_method', mpp_get_option( 'default_storage', 'local' ) ); -
apply_filters( 'mpp_get_editable_components', $components ); -
apply_filters( 'mpp_get_editable_statuses', $statuses ); -
apply_filters( 'mpp_get_editable_types', $types ); -
apply_filters( 'mpp_get_gallery_add_media_url', $link, $gallery ); -
apply_filters( 'mpp_get_gallery_base_url', trailingslashit( $base_url ), $component, $component_id ); -
apply_filters( 'mpp_get_gallery_class', "mpp-item mpp-gallery mpp-gallery-{$gallery->type} mpp-gallery-view-{$view} $class" ); -
apply_filters( 'mpp_get_gallery_cover_delete_url', $link, $gallery ); -
apply_filters( 'mpp_get_gallery_cover_src', $thumb_image_url, $type, $gallery ); -
apply_filters( 'mpp_get_gallery_create_url', $link, $component ); -
apply_filters( 'mpp_get_gallery_creator_id', $gallery->user_id, $gallery->id ); -
apply_filters( 'mpp_get_gallery_date_created', date_i18n( get_option( 'date_format' ), $gallery->date_created ), $gallery->id ); -
apply_filters( 'mpp_get_gallery_date_updated', mysql2date( get_option( 'date_format' ), $gallery->date_updated, true ), $gallery->id ); -
apply_filters( 'mpp_get_gallery_default_cover_image_src', $default_image, $type, $gallery ); -
apply_filters( 'mpp_get_gallery_delete_url', $link, $gallery ); -
apply_filters( 'mpp_get_gallery_description', stripslashes( $gallery->description ), $gallery->id ); -
apply_filters( 'mpp_get_gallery_edit_media_url', $link, $gallery ); -
apply_filters( 'mpp_get_gallery_id', $gallery->id ); -
apply_filters( 'mpp_get_gallery_management_base_url', $link, $gallery ); -
apply_filters( 'mpp_get_gallery_management_default_action', 'edit', $gallery ); -
apply_filters( 'mpp_get_gallery_management_url', $link, $action, $gallery ); -
apply_filters( 'mpp_get_gallery_reorder_media_url', $link, $gallery ); -
apply_filters( 'mpp_get_gallery_settings_url', $link, $gallery ); -
apply_filters( 'mpp_get_gallery_slug', $gallery->slug, $gallery->id ); -
apply_filters( 'mpp_get_gallery_status', $gallery->status, $gallery->id ); -
apply_filters( 'mpp_get_gallery_title', $gallery->title, $gallery->id ); -
apply_filters( 'mpp_get_gallery_type', $gallery->type, $gallery->id ); -
apply_filters( 'mpp_get_gallery_view', $view, $gallery ); -
apply_filters( 'mpp_get_groups_gallery_template', $template ); -
apply_filters( 'mpp_get_media_class', "{$class_list} {$class}" ); -
apply_filters( 'mpp_get_media_cover_delete_url', $link, $media ); -
apply_filters( 'mpp_get_media_cover_src', $thumb_image_url, $size, $media ); -
apply_filters( 'mpp_get_media_creator_id', $media->user_id, $media->id ); -
apply_filters( 'mpp_get_media_date_created', mysql2date( $format, $media->date_created, $translate ), $media->id ); -
apply_filters( 'mpp_get_media_date_updated', mysql2date( get_option( 'date_format' ), $media->date_updated, true ), $media->id ); -
apply_filters( 'mpp_get_media_default_cover_image_src', $default_image, $size, $media ); -
apply_filters( 'mpp_get_media_description', stripslashes( $media->description ), $media->id ); -
apply_filters( 'mpp_get_media_id', $media->id ); -
apply_filters( 'mpp_get_media_is_remote', $media->is_remote ); -
apply_filters( 'mpp_get_media_permalink', trailingslashit( $gallery_permalink . '/' . mpp_get_media_slug( $media ) ) ); -
apply_filters( 'mpp_get_media_sizes', $sizes ); -
apply_filters( 'mpp_get_media_slug', $media->slug, $media->id ); -
apply_filters( 'mpp_get_media_src', $storage_manager->get_src( $size, $media->id ), $size, $media ); -
apply_filters( 'mpp_get_media_status', $media->status, $media->id ); -
apply_filters( 'mpp_get_media_title', $media->title, $media->id ); -
apply_filters( 'mpp_get_media_type', $media->type, $media->id ); -
apply_filters( 'mpp_get_media_view', $view, $media ); -
apply_filters( 'mpp_get_members_gallery_template', $template ); -
apply_filters( 'mpp_get_storage_method', $type, $id ); -
apply_filters( 'mpp_get_template_part', $template, $slug, $name, $fallback_path ); -
apply_filters( 'mpp_get_total_gallery_count', $found ); -
apply_filters( 'mpp_get_total_gallery_count_for_member', mpp_get_total_gallery_for_user() ); -
apply_filters( 'mpp_get_total_media_count', $found ); -
apply_filters( 'mpp_get_total_media_count_for_member', $total ); -
apply_filters( 'mpp_get_upload_context', $current_context, $media_id, $context ); -
apply_filters( 'mpp_get_user_link', '<a href="' . $url . '" title="' . $display_name . '">' . $display_name . '</a>', $user_id ); -
apply_filters( 'mpp_get_wall_gallery_id', $id, $component_id, $component, $media_type ); -
do_action( 'mpp_group_extension_loaded' ); -
apply_filters( 'mpp_groups_gallery_located_template', $template ); -
do_action( 'mpp_init' ); -
apply_filters( 'mpp_intermediate_image_sizes', $sizes, $attachment_id ); -
apply_filters( 'mpp_is_activity_upload_enabled', mpp_get_option( 'activity_upload', true ), $component ); -
apply_filters( 'mpp_is_component_gallery', $is_gallery ); -
apply_filters( 'mpp_is_enabled', mpp_is_active_component( $component ), $component, $component_id ); -
apply_filters( 'mpp_is_oembed_media', $media->is_oembed ); -
apply_filters( 'mpp_js_strings', array( 'show_all' => __( 'Show all', 'mediapress' ), 'show_all_comments' => __( 'Show all comments for this thread', 'mediapress' ), 'show_x_comments' => __( 'Show all %d comments', 'mediapress' ), 'mark_as_fav' => __( 'Favorite', 'mediapress' ), 'my_favs' => __( 'My Favorites', 'mediapress' ), 'remove_fav' => __( 'Remove Favorite', 'mediapress' ), 'view' => __( 'View', 'mediapress' ), 'bulk_de... ); -
do_action( 'mpp_lightbox_media_action_after_link', $media ); -
do_action( 'mpp_lightbox_media_action_before_link', $media ); -
apply_filters( 'mpp_lightbox_template', mpp_locate_template( array( $template ), false ) ); -
apply_filters( 'mpp_load_js', true ); -
do_action( 'mpp_loaded' ); -
apply_filters( 'mpp_localizable_data', $settings ); -
apply_filters( 'mpp_locate_template', $located, $template_names, $default_path ); -
apply_filters( 'mpp_main_gallery_dir_ajax_query_args', $args ); -
apply_filters( 'mpp_main_gallery_query_args', $args ); -
apply_filters( 'mpp_main_media_query_args', $args ); -
apply_filters( 'mpp_media_actions_links', join( ' ', $links ), $links, $media ); -
do_action( 'mpp_media_added', $id, $gallery_id ); -
apply_filters( 'mpp_media_delete_redirect_url', mpp_get_gallery_permalink( $media->gallery_id ), $media ); -
do_action( 'mpp_media_deleted', $media_id ); -
apply_filters( 'mpp_media_do_record_activity', true, $args ); -
apply_filters( 'mpp_media_html_attributes_pre', $args ); -
do_action( 'mpp_media_updated', $id, $gallery_id ); -
apply_filters( 'mpp_media_user_can_comment', $can_comment, $media_id ); -
apply_filters( 'mpp_member_gallery_located_template', $template ); -
do_action( 'mpp_parse_query' ); -
apply_filters( 'mpp_plupload_default_params', $params ); -
apply_filters( 'mpp_prepare_media_for_js', $response, $attachment, $meta ); -
do_action( 'mpp_ready' ); -
apply_filters( 'mpp_record_activity_args', $activity_args, $default ); -
do_action( 'mpp_register_activity_actions' ); -
apply_filters( 'mpp_remote_media_add_permission_denied_message', __( "You don't have sufficient permissions.", 'mediapress' ), $component, $component_id, $gallery ); -
apply_filters( 'mpp_replace_the_content', $content ); -
apply_filters( 'mpp_reserved_slugs', $reserved ); -
do_action( 'mpp_screen_manage_gallery' ); -
do_action( 'mpp_screen_manage_media' ); -
do_action( 'mpp_screens' ); -
apply_filters( 'mpp_send_bp_notifications', false ); -
apply_filters( 'mpp_settings', $options ); -
do_action( 'mpp_setup' ); -
do_action( 'mpp_setup_admin_bar' ); -
do_action( 'mpp_setup_core' ); -
do_action( 'mpp_setup_gallery_query', $this ); -
do_action( 'mpp_setup_globals' ); -
apply_filters( 'mpp_shortcode_list_gallery_defaults', $defaults ); -
apply_filters( 'mpp_shortcode_list_gallery_located_template', mpp_locate_template( array( 'shortcodes/gallery-list.php' ), false ), $atts, $view ); -
apply_filters( 'mpp_shortcode_list_gallery_query_args', $atts, $defaults ); -
apply_filters( 'mpp_shortcode_list_media_defaults', $defaults ); -
apply_filters( 'mpp_shortcode_list_media_located_template', mpp_locate_template( $templates, false ), $atts, $view ); -
apply_filters( 'mpp_shortcode_list_media_query_args', $atts, $defaults ); -
apply_filters( 'mpp_shortcode_mpp_media_content', '', $atts, $view ); -
apply_filters( 'mpp_shortcode_mpp_show_gallery_content', '', $atts, $view ); -
apply_filters( 'mpp_shortcode_show_gallery_defaults', $defaults ); -
apply_filters( 'mpp_shortcode_show_gallery_query_args', $atts, $defaults ); -
apply_filters( 'mpp_show_gallery_description', $show, $gallery ); -
apply_filters( 'mpp_show_media_description', $show, $media ); -
apply_filters( 'mpp_template_hierarchy_directory', array( 'mediapress/directory/index-full.php', ) ); -
apply_filters( 'mpp_template_manage_user_galleries', 'members/single/plugins' ); -
apply_filters( 'mpp_template_manage_user_media', 'members/single/plugins' ); -
do_action( 'mpp_template_redirect' ); -
apply_filters( 'mpp_template_user_galleries_create', 'members/single/plugins' ); -
apply_filters( 'mpp_update_wall_gallery_id', $id, $component_id, $component, $media_type ); -
apply_filters( 'mpp_upload_bits', array( 'name' => $name, 'path' => $upload['path'], ) ); -
apply_filters( 'mpp_upload_default_settings', $defaults ); -
apply_filters( 'mpp_upload_permission_denied_message', __( "You don't have sufficient permissions to upload.", 'mediapress' ), $component, $component_id, $gallery ); -
apply_filters( 'mpp_upload_prefilter', $file ); -
apply_filters( 'mpp_use_processed_file_name_as_media_title', false ); -
apply_filters( 'mpp_use_single_media_upload_as_media_activity', false ); -
apply_filters( 'mpp_used_space', $storage_manager->get_used_space( $component, $component_id ), $component, $component_id ); -
apply_filters( 'mpp_user_can_add_remote_media', $can_do, $component, $component_id, $gallery ); -
apply_filters( "mpp_user_can_add_remote_media_to_{$component}", $can_do, $component_id, $gallery ); -
apply_filters( 'mpp_user_can_comment_on_gallery', is_user_logged_in(), $gallery_id ); -
apply_filters( 'mpp_user_can_create_gallery', $can_do, $component, $component_id ); -
apply_filters( 'mpp_user_can_delete_gallery', $can, $gallery, $user_id ); -
apply_filters( 'mpp_user_can_delete_media', $allow, $media, $gallery, $user_id ); -
apply_filters( 'mpp_user_can_edit_gallery', $can, $gallery, $user_id ); -
apply_filters( 'mpp_user_can_edit_media', $allow, $media, $gallery, $user_id ); -
apply_filters( 'mpp_user_can_list_media', $can_do, $gallery, $user_id ); -
apply_filters( 'mpp_user_can_manage_current_gallery_action', $can, mediapress()->get_edit_action() ); -
apply_filters( 'mpp_user_can_manage_current_media_action', $can, mediapress()->get_edit_action() ); -
apply_filters( 'mpp_user_can_publish_gallery_activity', $can, $gallery, $user_id ); -
apply_filters( 'mpp_user_can_upload', $can_do, $component, $component_id, $gallery ); -
apply_filters( 'mpp_user_can_view_media', $allowed, $media, $gallery, $user_id ); -
apply_filters( 'mpp_user_can_view_storage_stats', $can, $user_id, $component, $component_id ); -
apply_filters( 'mpp_valid_gallery_status', array_keys( mpp_get_active_statuses() ) ); -
apply_filters( 'mpp_wall_gallery_title', $title, $args ); -
do_action( 'mpp_widgets_init' ); -
apply_filters( 'mpp-create-gallery-field-validation', $errors, $_POST ); -
apply_filters( 'mpp-edit-media-field-validation', $errors, $_POST ); -
do_action( 'wp_playlist_scripts' );
Generated from MediaPress'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: