um_filter_avatar_cache_time

Hook type

Filter

Description

Change Profile field value if it's empty

Parameters

$timestamp

(timestamp) Avatar cache time

$user_id

(int) User ID

Usage

add_filter( 'um_filter_avatar_cache_time', 'function_name', 10, 2 );

Examples

<?php
add_filter( 'um_filter_avatar_cache_time', 'my_avatar_cache_time', 10, 2 );
function my_avatar_cache_time( $timestamp, $user_id ) {
    // your code here
return $timestamp;
}
?>

Change Log

Since: 2.0

Source

um_filter_avatar_cache_time is located in includes/um-short-functions.php::line 1679