From 53828dd76d84823e25d39b8b3e0830aa60f6ab3f Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Tue, 18 Nov 2025 14:20:50 +0200 Subject: [PATCH] Refactor profile cover hook to include $args parameter. Updated the `um_cover_area_content` hook to pass an additional `$args` parameter for enhanced customization in the user profile cover wrapper. Improved the documentation for clarity and usability. --- includes/core/um-actions-profile.php | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index 520c42c2..da1c67d5 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -863,25 +863,22 @@ function um_profile_header_cover_area( $args ) { data-user_id="" data-ratio=""> Make any custom action in the User Profile cover wrapper. + * function my_cover_area_content( $user_id, $args ) { * // your code here * } - * ?> + * add_action( 'um_cover_area_content', 'my_cover_area_content', 10, 2 ); */ - do_action( 'um_cover_area_content', um_profile_id() ); + do_action( 'um_cover_area_content', um_profile_id(), $args ); if ( true === UM()->fields()->editing ) { $hide_remove = ' style="display:none;"';