User Profile Picture icon
Membership & Users

User Profile Picture hooks reference

  • By Cozmoslabs
  • v2.6.4
  • Updated

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.

functions.phpyour child theme
// 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

  • gutenberg/class-gutenberg.php line 596 · used in 2 places
    /**
     * Filter Social Icons Sprite.
     */
    apply_filters( 'mpp_icons_sprite', $svg_icons );
  • metronet-profile-picture.php line 786
    /**
     * Filter the the creation of image sizes.
     */
    apply_filters( 'mpp_add_image_sizes', $display_image_sizes );
  • metronet-profile-picture.php line 1094
    /**
     * Filter the capability types of users.
     */
    apply_filters( 'mpp_gutenberg_user_role', 'authors' );
  • metronet-profile-picture.php line 314
    /**
     * Allow other plugins to add to the defaults.
     */
    apply_filters( 'mpp_options_defaults', $defaults );
  • metronet-profile-picture.php line 290
    /**
     * Allow other plugins to perform their own sanitization functions.
     */
    apply_filters( 'mpp_options_sanitized', $options );
  • metronet-profile-picture.php line 770
    /**
     * Allow other plugins to modify the post type creation arguments.
     */
    apply_filters( 'mpp_post_type_args', $post_type_args );
  • mpp_svg_end

    action
    metronet-profile-picture.php line 1841
    /**
     * Allow other plugins to run code from inside this SVG block at the end.
     */
    do_action( 'mpp_svg_end' );
  • mpp_svg_start

    action
    metronet-profile-picture.php line 1812
    /**
     * Allow other plugins to run code from inside this SVG block.
     */
    do_action( 'mpp_svg_start' );
  • metronet-profile-picture.php line 1458
    /**
     * Filter outputted HTML.
     */
    apply_filters( 'mpp_thumbnail_html', $post_thumbnail, $profile_post_id, $post_thumbnail_id, $user_id );
  • metronet-profile-picture.php line 228
    /**
     * Allow other plugins to run code after the user profile admin Table Row.
     */
    do_action( 'mpp_user_profile_admin_settings_after_row', $options );
  • metronet-profile-picture.php line 240
    /**
     * Allow other plugins to run code after the user profile admin Table.
     */
    do_action( 'mpp_user_profile_admin_settings_after_table', $options );
  • metronet-profile-picture.php line 901
    /**
     * Allow other plugins to run code after the user profile picture UI.
     */
    do_action( 'mpp_user_profile_form', $user_id );
  • profile-builder-transition.php line 214
    do_action( "{$this->notificationId}_after_notification_dismissed", $current_user );
  • profile-builder-transition.php line 212
    do_action( "{$this->notificationId}_before_notification_dismissed", $current_user );
  • metronet-profile-picture.php line 566
    apply_filters( 'mpp_avatar_classes', $classes );
  • metronet-profile-picture.php line 879
    apply_filters( 'mpp_avatar_override', false );
  • metronet-profile-picture.php line 883
    apply_filters( 'mpp_hide_avatar_override', false );
  • profile-builder-transition.php line 65
    apply_filters( 'upp_enable_transition_request_notice', true );
  • profile-builder-transition.php line 80
    apply_filters( 'upp_plugin_activation_fail_message', __('Could not install. Try again from the <a href="%s" >Plugins Dashboard.</a>', 'metronet-profile-picture') );
  • profile-builder-transition.php line 72
    apply_filters( 'upp_plugin_activation_success_message', esc_html__('Plugin activated.', 'metronet-profile-picture') );
  • profile-builder-transition.php line 114
    apply_filters( 'upp_transition_notice_button_text', esc_html__( 'Install & Activate', 'metronet-profile-picture' ) );
  • profile-builder-transition.php line 172
    apply_filters( 'upp_transition_notice_enable_add_on_button_text', esc_html__( 'Activate the add-on', 'metronet-profile-picture' ) );
  • profile-builder-transition.php line 153
    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' ) );
  • profile-builder-transition.php line 158
    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' ) );
  • profile-builder-transition.php line 162
    apply_filters( 'upp_transition_notice_enable_add_on_part_3', esc_html__( "section of Profile Builder's Documentation.", 'metronet-profile-picture' ) );
  • profile-builder-transition.php line 95
    apply_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' ) );
  • profile-builder-transition.php line 100
    apply_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' ) );
  • profile-builder-transition.php line 104
    apply_filters( 'upp_transition_notice_part_3', esc_html__( "section of Profile Builder's Documentation.", 'metronet-profile-picture' ) );
  • profile-builder-transition.php line 139
    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') );
  • metronet-profile-picture.php line 1401
    do_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: