- added cover image HTML hook;

This commit is contained in:
nikitasinelnikov
2019-10-10 19:01:52 +03:00
parent 6c391cd60f
commit 48f561763b
3 changed files with 11 additions and 7 deletions
+8 -5
View File
@@ -2456,15 +2456,18 @@ function um_user( $data, $attrs = null ) {
$alt = um_profile( 'nickname' );
return $cover_uri ? '<img src="' . esc_attr( $cover_uri ) . '" alt="' . esc_attr( $alt ) . '" />' : '';
$cover_html = $cover_uri ? '<img src="' . esc_attr( $cover_uri ) . '" alt="' . esc_attr( $alt ) . '" />' : '';
$cover_html = apply_filters( 'um_user_cover_photo_html__filter', $cover_html, $cover_uri, $alt, $is_default, $attrs );
return $cover_html;
break;
case 'user_url':
case 'user_url':
$value = um_profile( $data );
$value = um_profile( $data );
return $value;
return $value;
break;
+2 -2
View File
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Ultimate Member\n"
"POT-Creation-Date: 2019-10-10 18:26+0300\n"
"PO-Revision-Date: 2019-10-10 18:26+0300\n"
"POT-Creation-Date: 2019-10-10 18:58+0300\n"
"PO-Revision-Date: 2019-10-10 18:58+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en_US\n"
+1
View File
@@ -152,6 +152,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
- Updated member directories' search engine
- Additional parameter 'user_id' to action hook 'um_user_after_updating_profile'
- Added ability to set profile/cover image sizes from Ultimate Member -> General -> Uploads settings or Original size
- Added ability edit cover photo HTML (e.g. for adding some HTML attributes. See how add srcset attribute based on all generated cover sizes [here](https://docs.ultimatemember.com/article/1519-change-cover-photo-html))
* Bugfixes:
- Optimized usermeta for Account submit security