Add new filter hook 'um_activate_url

This commit is contained in:
champsupertramp
2016-08-11 16:37:00 +08:00
parent 3105695b2b
commit e88f9c788e
+1
View File
@@ -196,6 +196,7 @@ class UM_Permalinks {
global $ultimatemember;
if ( !um_user('account_secret_hash') ) return false;
$url = apply_filters( 'um_activate_url', home_url() );
$url = add_query_arg( 'act', 'activate_via_email', $url );
$url = add_query_arg( 'hash', um_user('account_secret_hash'), $url );
$url = add_query_arg( 'user_id', um_user('ID'), $url );