From f5d48cb9d3ac8efd3206924ba45a6b8b445f4451 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Mon, 18 Jul 2016 20:25:59 +0800 Subject: [PATCH] Add new filter 'um_get_default_cover_uri_filter' --- core/um-short-functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/um-short-functions.php b/core/um-short-functions.php index 8b3e6baf..d3247b39 100644 --- a/core/um-short-functions.php +++ b/core/um-short-functions.php @@ -1291,8 +1291,10 @@ function um_fetch_user( $user_id ) { function um_get_default_cover_uri() { $uri = um_get_option('default_cover'); $uri = $uri['url']; - if ( $uri ) + if ( $uri ){ + $uri = apply_filters('um_get_default_cover_uri_filter', $uri ); return $uri; + } return ''; }