diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index c180b3cb..870354b4 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -1725,6 +1725,25 @@ function um_profile_menu( $args ) { */ $nav_link = apply_filters( "um_profile_menu_link_{$id}", $nav_link ); + /** + * Filters changing a link's tag attributes. + * + * @since 2.6.3 + * @hook um_profile_menu_link_{$id}_attrs + * + * @param {string} $profile_nav_attrs link's tag attributes. + * + * @return {string} link's tag attributes. + * + * @example Add a link's tag attributes. + * function um_profile_menu_link_attrs( $profile_nav_attrs ) { + * // your code here + * return $profile_nav_attrs; + * } + * add_filter( 'um_profile_menu_link_{$id}_attrs', 'um_profile_menu_link_attrs', 10, 1 ); + */ + $profile_nav_attrs = apply_filters( "um_profile_menu_link_{$id}_attrs", '' ); + $profile_nav_class = ''; if ( ! UM()->options()->get( 'profile_menu_icons' ) ) { $profile_nav_class .= ' without-icon'; @@ -1737,7 +1756,7 @@ function um_profile_menu( $args ) {
options()->get( 'profile_menu_icons' ) ) { ?> + title="" original-title="" > @@ -1748,7 +1767,7 @@ function um_profile_menu( $args ) { + title="" > @@ -1760,7 +1779,7 @@ function um_profile_menu( $args ) { + title="" original-title="" > @@ -1769,7 +1788,7 @@ function um_profile_menu( $args ) { + title="" > 0 ) { ?>