Add option to change Gravatar default image

This commit is contained in:
champsupertramp
2016-03-07 19:12:07 +08:00
parent 43679bd17f
commit 81d39fd9c4
3 changed files with 17 additions and 2 deletions
+11
View File
@@ -177,6 +177,17 @@ $this->sections[] = array(
'off' => __('No','ultimatemember'),
),
array(
'id' => 'use_um_gravatar_default_image',
'type' => 'switch',
'title' => __( 'Use Default plugin avatar as Gravatar\'s Default avatar','ultimatemember' ),
'default' => 0,
'desc' => __('Do you want to use the plugin default avatar instead of the gravatar default photo (If the user did not upload a custom profile photo / avatar)','ultimatemember'),
'on' => __('Yes','ultimatemember'),
'off' => __('No','ultimatemember'),
'required' => array( 'use_gravatars', '=', 1 ),
),
array(
'id' => 'reset_require_strongpass',
'type' => 'switch',