um_profile_edit_menu_items

Hook type

Filter

Description

Edit menu items on profile page

Parameters

$items

(array) User Menu

$user_id

(int) Profile ID

Usage

<?php add_filter( 'um_profile_edit_menu_items', 'function_name', 10, 2 ); ?>

Examples

<?php
add_filter( 'um_profile_edit_menu_items', 'my_profile_edit_menu_items', 10, 2 );
function my_profile_edit_menu_items( $items, $user_id ) {
    // your code here
return $items;
}
?>

Change Log

Since: 2.0

Source

um_profile_edit_menu_items is located in includes/core/um-actions-profile.php::line 1089