mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
Add new option for Network Permalink Structure
This commit is contained in:
+24
-7
@@ -1959,12 +1959,8 @@ $this->sections[] = array(
|
||||
*** @
|
||||
***/
|
||||
|
||||
$this->sections[] = array(
|
||||
|
||||
'icon' => 'um-faicon-wrench',
|
||||
'title' => __('Advanced','ultimatemember'),
|
||||
'fields' => array(
|
||||
|
||||
$arr_advanced_fields = array(
|
||||
|
||||
array(
|
||||
'id' => 'import_export',
|
||||
'type' => 'import_export',
|
||||
@@ -2101,6 +2097,27 @@ $this->sections[] = array(
|
||||
'off' => __('Off','ultimatemember'),
|
||||
),
|
||||
|
||||
)
|
||||
);
|
||||
|
||||
if( is_multisite() ){
|
||||
$arr_advanced_fields[] = array(
|
||||
'id' => 'network_permalink_structure',
|
||||
'type' => 'select',
|
||||
'select2' => array( 'allowClear' => 0, 'minimumResultsForSearch' => -1 ),
|
||||
'title' => __( 'Network Permalink Structure','ultimatemember' ),
|
||||
'desc' => __( 'Change this If you are having conflicts with profile links or redirections in a multisite setup.','ultimatemember' ),
|
||||
'default' => 'sub-domain',
|
||||
'options' => array(
|
||||
'sub-domain' => __('Sub-Domain','ultimatemember'),
|
||||
'sub-directory' => __('Sub-Directory','ultimatemember'),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$this->sections[] = array(
|
||||
|
||||
'icon' => 'um-faicon-wrench',
|
||||
'title' => __('Advanced','ultimatemember'),
|
||||
'fields' => $arr_advanced_fields
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user