User Profile Picture 2.6.4 has 8 actions and 27 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 User Profile Picture fires an action
add_action( 'mpp_svg_end', function() {
// Your code runs here.
}, 10, 1 );
// Change a value User Profile Picture is about to use
add_filter( 'mpp_icons_sprite', function( $svg_icons ) {
// Change $svg_icons here.
return $svg_icons;
}, 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
-
mpp_icons_sprite
filter/** * Filter Social Icons Sprite. */ apply_filters( 'mpp_icons_sprite', $svg_icons ); -
mpp_add_image_sizes
filter/** * Filter the the creation of image sizes. */ apply_filters( 'mpp_add_image_sizes', $display_image_sizes ); -
mpp_gutenberg_user_role
filter/** * Filter the capability types of users. */ apply_filters( 'mpp_gutenberg_user_role', 'authors' ); -
mpp_options_defaults
filter/** * Allow other plugins to add to the defaults. */ apply_filters( 'mpp_options_defaults', $defaults ); -
mpp_options_sanitized
filter/** * Allow other plugins to perform their own sanitization functions. */ apply_filters( 'mpp_options_sanitized', $options ); -
mpp_post_type_args
filter/** * Allow other plugins to modify the post type creation arguments. */ apply_filters( 'mpp_post_type_args', $post_type_args ); -
mpp_svg_end
action/** * Allow other plugins to run code from inside this SVG block at the end. */ do_action( 'mpp_svg_end' ); -
mpp_svg_start
action/** * Allow other plugins to run code from inside this SVG block. */ do_action( 'mpp_svg_start' ); -
mpp_thumbnail_html
filter/** * Filter outputted HTML. */ apply_filters( 'mpp_thumbnail_html', $post_thumbnail, $profile_post_id, $post_thumbnail_id, $user_id ); -
/** * Allow other plugins to run code after the user profile admin Table Row. */ do_action( 'mpp_user_profile_admin_settings_after_row', $options ); -
/** * Allow other plugins to run code after the user profile admin Table. */ do_action( 'mpp_user_profile_admin_settings_after_table', $options ); -
mpp_user_profile_form
action/** * Allow other plugins to run code after the user profile picture UI. */ do_action( 'mpp_user_profile_form', $user_id ); -
do_action( "{$this->notificationId}_after_notification_dismissed", $current_user ); -
do_action( "{$this->notificationId}_before_notification_dismissed", $current_user ); -
mpp_avatar_classes
filterapply_filters( 'mpp_avatar_classes', $classes ); -
mpp_avatar_override
filterapply_filters( 'mpp_avatar_override', false ); -
mpp_hide_avatar_override
filterapply_filters( 'mpp_hide_avatar_override', false ); -
apply_filters( 'upp_enable_transition_request_notice', true ); -
apply_filters( 'upp_plugin_activation_fail_link', admin_url('plugins.php') ); -
apply_filters( 'upp_plugin_activation_fail_message', __('Could not install. Try again from the <a href="%s" >Plugins Dashboard.</a>', 'metronet-profile-picture') ); -
apply_filters( 'upp_plugin_activation_success_message', esc_html__('Plugin activated.', 'metronet-profile-picture') ); -
apply_filters( 'upp_transition_notice_button_text', esc_html__( 'Install & Activate', 'metronet-profile-picture' ) ); -
apply_filters( 'upp_transition_notice_enable_add_on_button_text', esc_html__( 'Activate the add-on', 'metronet-profile-picture' ) ); -
apply_filters( 'upp_transition_notice_enable_add_on_link_target', "https://www.cozmoslabs.com/docs/profile-builder/add-ons/user-profile-picture/" ); -
apply_filters( 'upp_transition_notice_enable_add_on_link_text', esc_html__( 'this', 'metronet-profile-picture' ) ); -
apply_filters( 'upp_transition_notice_enable_add_on_part_1', esc_html__( 'The User Profile Picture functionality has been migrated into Profile Builder as an add-on. Do you wish to enable this new add-on and deactivate the User Profile Picture plugin?', 'metronet-profile-picture' ) ); -
apply_filters( 'upp_transition_notice_enable_add_on_part_2', esc_html__( 'This plugin will continue to function as it is now, but it will not receive further updates. You can read more about this transition in', 'metronet-profile-picture' ) ); -
apply_filters( 'upp_transition_notice_enable_add_on_part_3', esc_html__( "section of Profile Builder's Documentation.", 'metronet-profile-picture' ) ); -
apply_filters( 'upp_transition_notice_link_target', "https://www.cozmoslabs.com/docs/profile-builder/add-ons/user-profile-picture/" ); -
apply_filters( 'upp_transition_notice_link_text', esc_html__( 'this', 'metronet-profile-picture' ) ); -
upp_transition_notice_part_1
filterapply_filters( 'upp_transition_notice_part_1', esc_html__( 'The User Profile Picture functionality has been migrated into Profile Builder as an add-on. Please install and activate the Profile Builder plugin to use this new add-on.', 'metronet-profile-picture' ) ); -
upp_transition_notice_part_2
filterapply_filters( 'upp_transition_notice_part_2', esc_html__( 'This plugin will continue to function as it is now, but it will not receive further updates. You can read more about this transition in', 'metronet-profile-picture' ) ); -
upp_transition_notice_part_3
filterapply_filters( 'upp_transition_notice_part_3', esc_html__( "section of Profile Builder's Documentation.", 'metronet-profile-picture' ) ); -
apply_filters( 'upp_transition_notice_update_pb', esc_html__('The User Profile Picture functionality has been migrated into Profile Builder as an add-on. Please update the Profile Builder plugin to at least version 3.12.0 to make use of this new add-on.', 'metronet-profile-picture') ); -
user_profile_picture_loaded
actiondo_action( 'user_profile_picture_loaded' );
Generated from User Profile Picture's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: