Skip to content

Commit 685e88a

Browse files
committed
feat: Add SEO Settings module for WP User Frontend (weDevsOfficial#1710)
* feat: Add SEO Settings module for WP User Frontend Pro * chore: compressed image size: * chore: minify image file
1 parent e8120b8 commit 685e88a

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

assets/images/modules/wpuf-seo.png

18.5 KB
Loading

includes/Free/Free_Loader.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,13 @@ public function pro_sections( $sections ) {
222222
'icon' => 'dashicons-admin-network',
223223
'class' => 'pro-preview-html',
224224
'is_pro_preview' => true,
225+
],
226+
[
227+
'id' => 'wpuf_seo_settings',
228+
'title' => __( 'SEO Settings', 'wp-user-frontend' ) . '<span class="pro-icon-title"> ' . file_get_contents( $crown_icon_path ) . '</span>',
229+
'icon' => 'dashicons-search',
230+
'class' => 'pro-preview-html',
231+
'is_pro_preview' => true,
225232
]
226233
];
227234

@@ -853,6 +860,26 @@ public function pro_settings( $settings_fields ) {
853860
],
854861
];
855862

863+
// SEO Settings
864+
$settings_fields['wpuf_seo_settings'] = [
865+
[
866+
'name' => 'user_directory_section',
867+
'label' => __( 'User Directory SEO Settings', 'wp-user-frontend' ),
868+
'type' => 'html',
869+
'class' => 'pro-preview-html',
870+
'is_pro_preview' => true,
871+
],
872+
[
873+
'name' => 'avoid_indexing_profiles',
874+
'label' => __( 'Avoid indexing profile by search engines', 'wp-user-frontend' ) . '<span class="pro-icon"> ' . file_get_contents( $crown_icon_path ) . '</span>',
875+
'desc' => __( 'Enable this to add a noindex meta tag to all user profile pages across directories. Useful if you want some profiles hidden from search engines.', 'wp-user-frontend' ),
876+
'type' => 'checkbox',
877+
'default' => 'off',
878+
'class' => 'pro-preview',
879+
'is_pro_preview' => true,
880+
],
881+
];
882+
856883
return $settings_fields;
857884
}
858885

@@ -1269,6 +1296,12 @@ public function pro_modules_info() {
12691296
'plugin_uri' => 'https://wedevs.com/docs/wp-user-frontend-pro/modules/stripe/',
12701297
'thumbnail' => 'wpuf-stripe.png',
12711298
],
1299+
'seo/wpuf-seo.php' => [
1300+
'name' => 'SEO Settings',
1301+
'description' => 'SEO settings for user directory and profiles',
1302+
'plugin_uri' => 'https://wedevs.com/products/plugins/wp-user-frontend-pro/seo-settings/',
1303+
'thumbnail' => 'wpuf-seo.png',
1304+
],
12721305
];
12731306
}
12741307

0 commit comments

Comments
 (0)