PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0.1.2
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0.1.2
4.3.2 4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 All 165 releases
← All changes | Inc/Admin/Options/Security.php +75 -137 4.2.124.0.1.2 View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2
3 -namespace PXLBSAdminify\Inc\Admin\Options;
3 +namespace WPAdminify\Inc\Admin\Options;
4 4
5 -use PXLBSAdminify\Inc\Utils;
6 -use PXLBSAdminify\Inc\Admin\AdminSettingsModel;
5 +use WPAdminify\Inc\Utils;
6 +use WPAdminify\Inc\Admin\AdminSettingsModel;
7 7
8 8
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 10 die;
@@ -16,51 +16,10 @@
16 16 public $defaults = [];
17 17
18 18 public function __construct() {
19 19 $this->tweak_settings();
20 - add_action('admin_footer', [$this, 'redirect_url_auto_fill_script']);
21 20 }
22 21
23 - /**
24 - * Auto-fill New Register URL placeholder based on New Login URL
25 - */
26 - public function redirect_url_auto_fill_script() {
27 - $screen = get_current_screen();
28 - if (!$screen || strpos($screen->id, 'wp-adminify') === false) {
29 - return;
30 - }
31 - ?>
32 - <script>
33 - jQuery(document).ready(function($) {
34 - // Find the login URL and register URL fields
35 - var $loginField = $('input[data-depend-id="new_login_url"]');
36 - var $registerField = $('input[data-depend-id="new_register_url"]');
37 -
38 - if ($loginField.length && $registerField.length) {
39 - // Update placeholder when login URL changes (not actual value)
40 - $loginField.on('input change', function() {
41 - var loginValue = $(this).val().trim();
42 -
43 - if (loginValue) {
44 - // Update placeholder to suggest the register URL format
45 - $registerField.attr('placeholder', loginValue + '/?action=register');
46 - } else {
47 - // Reset to default placeholder
48 - $registerField.attr('placeholder', 'wp-login.php?action=register');
49 - }
50 - });
51 -
52 - // Also update placeholder on page load if login has value
53 - var initialLogin = $loginField.val().trim();
54 - if (initialLogin) {
55 - $registerField.attr('placeholder', initialLogin + '/?action=register');
56 - }
57 - }
58 - });
59 - </script>
60 - <?php
61 - }
62 -
63 22 protected function get_defaults() {
64 23 return [
65 24 'security_head' => [
66 25 'enable_security_head' => false,
@@ -92,11 +51,10 @@
92 51 'post_archives_data' => [],
93 52 ],
94 53 'security_feed' => false,
95 54 'users_security' => [
96 - 'enable_users_security' => false,
55 + 'limit_logins' => false,
97 56 'change_username' => false,
98 - // 'limit_logins' => false,
99 57 ],
100 58 'disable_automatic_emails' => false,
101 59 'disable_language_switcher_login' => false,
102 60
@@ -109,20 +67,22 @@
109 67 'redirect_admin_url' => '',
110 68 'new_register_url' => '',
111 69 'new_logout_url' => '',
112 70 'login_redirects' => [
113 - 'user_types' => '',
114 - 'redirect_user' => '',
115 - 'redirect_role' => '',
116 - 'redirect_cap' => '',
117 - 'redirect_url' => '',
71 + 'user_types' => 'user_role',
72 + 'redirect_user' => 'user_role',
73 + 'redirect_role' => '',
74 + 'redirect_cap' => '',
75 + 'redirect_url' => '',
76 + // 'redirect_order' => 10,
118 77 ],
119 78 'logout_redirects' => [
120 - 'user_types' => '',
121 - 'redirect_user' => '',
122 - 'redirect_role' => '',
123 - 'redirect_cap' => '',
124 - 'redirect_url' => '',
79 + 'user_types' => 'user_role',
80 + 'redirect_user' => 'user_role',
81 + 'redirect_role' => '',
82 + 'redirect_cap' => '',
83 + 'redirect_url' => '',
84 + // 'redirect_order' => 10,
125 85 ]
126 86 ],
127 87 ],
128 88 ]
@@ -137,9 +97,9 @@
137 97 */
138 98 public function security_head_fields( &$head_fields ) {
139 99 $security_head = [
140 100 'xmlrpc' => __( 'Disable XML-RPC', 'adminify' ),
141 - 'generator_wp_version' => __( 'Remove WordPress Generator Version from front end', 'adminify' ),
101 + 'generator_wp_version' => __( 'Remove WordPress Generator Version from fornt end', 'adminify' ),
142 102 'rsd' => __( 'Remove "<link rel=\'EditURI\'..." from head section', 'adminify' ),
143 103 'shortlink' => __( 'Remove "<link rel=\'shortlink\'..." from head section', 'adminify' ),
144 104 'canonical' => __( 'Remove &lt;link rel="canonical" href="https://www.site.com/some-url" /&gt; from head section', 'adminify' ),
145 105 'self_ping' => __('Disable self-ping, i.e., from your site to your site when writing posts.', 'adminify'),
@@ -177,9 +137,9 @@
177 137 'fields' => [
178 138 [
179 139 'id' => 'enable_security_head',
180 140 'type' => 'switcher',
181 - 'title' => '',
141 + 'title' => __('', 'adminify'),
182 142 'class' => 'adminify-pl-0 adminify-pt-0',
183 143 'text_on' => __('Show', 'adminify'),
184 144 'text_off' => __('Hide', 'adminify'),
185 145 'text_width' => 80,
@@ -188,9 +148,9 @@
188 148 [
189 149 'id' => 'security_head_data',
190 150 'type' => 'checkbox',
191 151 'class' => 'adminify-one-col',
192 - 'title' => '',
152 + 'title' => __('', 'adminify'),
193 153 'options' => $security_head,
194 154 'default' => $this->get_default_field('security_head')['security_head_data'],
195 155 'dependency' => ['enable_security_head', '==', 'true', 'true']
196 156 ],
@@ -238,13 +198,24 @@
238 198 // $logout_redirects = [];
239 199 $this->login_register_url_fields($settings_fields);
240 200 $this->roles_redirect_tabs($login_redirects);
241 201
202 + $redirect_urls[] = [
203 + 'id' => 'security_subheading',
204 + 'type' => 'subheading',
205 + 'content' => Utils::adminfiy_help_urls(
206 + __('"WordPress" White Label Settings', 'adminify'),
207 + 'https://wpadminify.com/kb/security/',
208 + '',
209 + 'https://www.facebook.com/groups/jeweltheme',
210 + 'https://wpadminify.com/support/'
211 + )
212 + ];
213 +
242 214 $redirect_urls = [
243 215 [
244 216 'id' => 'redirect_urls_fields',
245 - /* translators: %s: Pro upgrade badge HTML */
246 - 'title' => sprintf(__('Redirect URLs %s', 'adminify'), Utils::upgrade_pro_badge()),
217 + 'title' => sprintf(__('Redirect URLs %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
247 218 'class' => 'adminify-pro-fieldset',
248 219 'subtitle' => __('Login and logout redirects based on user roles. Customize URLs for administrators, editors, or subscribers etc.', 'adminify'),
249 220 'type' => 'fieldset',
250 221 'fields' => [
@@ -259,9 +230,9 @@
259 230 ],
260 231 [
261 232 'id' => 'redirect_urls_options',
262 233 'type' => 'fieldset',
263 - 'title' => ' ',
234 + 'title' => __(' ', 'adminify'),
264 235 'class' => 'adminify-pt-0 adminify-pl-0 adminify-one-col adminify-tabs-content adminify-pro-notice',
265 236 'fields' => [
266 237 [
267 238 'id' => 'redirect_urls_tabs',
@@ -295,13 +266,9 @@
295 266 'id' => 'new_login_url',
296 267 'type' => 'text',
297 268 'class' => 'new-login-url',
298 269 'title' => __('New Login URL', 'adminify'),
299 - 'desc' => sprintf(
300 - /* translators: %s: wp-login.php URL of the site */
301 - __('Change the login URL and prevent access to the wp-admin and %s page directly.', 'adminify'),
302 - '<code>' . esc_html( wp_login_url() ) . '</code>'
303 - ),
270 + 'desc' => __('Change the login URL and prevent access to the wp-admin and <code>' . wp_login_url() . '</code> page directly.', 'adminify'),
304 271 'placeholder' => 'login',
305 272 'before' => \get_site_url() . '/',
306 273 // 'after' => '/',
307 274 'default' => $this->get_default_field('redirect_urls_fields')['redirect_urls_options']['redirect_urls_tabs']['new_login_url'],
@@ -311,13 +278,9 @@
311 278 'id' => 'redirect_admin_url',
312 279 'type' => 'text',
313 280 'class' => 'new-login-url redirect-admin-url',
314 281 'title' => __('Redirect Admin', 'adminify'),
315 - 'desc' => sprintf(
316 - /* translators: %s: site admin URL */
317 - __('Redirect users those are not logged in and trying to access %s', 'adminify'),
318 - '<code>' . esc_html( get_admin_url() ) . '</code>'
319 - ),
282 + 'desc' => __('Redirect users those are not logged in and trying to access <code>' . get_admin_url() . '</code>', 'adminify'),
320 283 'placeholder' => '404',
321 284 'default' => $this->get_default_field('redirect_urls_fields')['redirect_urls_options']['redirect_urls_tabs']['redirect_admin_url'],
322 285 'before' => \get_site_url() . '/',
323 286 // 'after' => '/',
@@ -327,15 +290,10 @@
327 290 'id' => 'new_register_url',
328 291 'type' => 'text',
329 292 'class' => 'new-login-url new-register-url',
330 293 'title' => __('New Register URL', 'adminify'),
331 - 'subtitle' => __('Use default registration: leave empty.', 'adminify'),
332 - 'desc' => sprintf(
333 - /* translators: %s: opening anchor tag pointing to Settings > General, closed by </a> in the next placeholder */
334 - __('For default enable <strong>"Membership: Anyone can register"</strong> in %1$sSettings → General.%2$s To use custom registration: Create a Page, then paste its permalink here (e.g. /register).', 'adminify'),
335 - '<a href="' . esc_url( admin_url('options-general.php#users_can_register') ) . '" style="color: var(--adminify-primary);">',
336 - '</a>'
337 - ),
294 + 'subtitle' => __('Enable <a href="' . admin_url('options-general.php#users_can_register') . '"><b>Membership: "Anyone can register"</b></a> checkbox from Settings.', 'adminify'),
295 + 'desc' => __('Change the Register URL, to setup the custom designed registration page.', 'adminify'),
338 296 'placeholder' => 'wp-login.php?action=register',
339 297 'before' => \get_site_url() . '/',
340 298 // 'after' => '/',
341 299 'default' => $this->get_default_field('redirect_urls_fields')['redirect_urls_options']['redirect_urls_tabs']['new_register_url'],
@@ -458,9 +416,9 @@
458 416 'id' => 'redirect_cap',
459 417 'type' => 'select',
460 418 'title' => __('Capability', 'adminify'),
461 419 'placeholder' => __('Select a Capability', 'adminify'),
462 - 'options' => '\PXLBSAdminify\Inc\Classes\Helper::get_capability_options',
420 + 'options' => '\WPAdminify\Inc\Classes\Helper::get_capability_options',
463 421 'default' => $this->get_default_field('redirect_urls_fields')['redirect_urls_options']['redirect_urls_tabs']['login_redirects']['redirect_cap'],
464 422 'dependency' => ['user_types', '==', 'user_cap'],
465 423 ];
466 424
@@ -470,10 +428,10 @@
470 428 'id' => 'redirect_url',
471 429 'type' => 'text',
472 430 'class' => 'new-login-url',
473 431 'title' => __('Redirect URL', 'adminify'),
474 - 'placeholder' => __('e.g., my-dashboard or https://example.com/page', 'adminify'),
475 - 'desc' => __('Enter a page slug (e.g., my-dashboard) or full URL. For multisite, use full URLs for cross-site redirects.', 'adminify'),
432 + // 'before' => \get_site_url() . '/',
433 + 'desc' => __('Note: Full URL here. Change the URL for a User or User Roles.', 'adminify'),
476 434 'default' => $this->get_default_field('redirect_urls_fields')['redirect_urls_options']['redirect_urls_tabs']['login_redirects']['redirect_url'],
477 435 ];
478 436
479 437 // // Redirect Order
@@ -535,9 +493,9 @@
535 493 'id' => 'redirect_cap',
536 494 'type' => 'select',
537 495 'title' => __('Capability', 'adminify'),
538 496 'placeholder' => __('Select a Capability', 'adminify'),
539 - 'options' => '\PXLBSAdminify\Inc\Classes\Helper::get_capability_options',
497 + 'options' => '\WPAdminify\Inc\Classes\Helper::get_capability_options',
540 498 'default' => $this->get_default_field('redirect_urls_fields')['redirect_urls_options']['redirect_urls_tabs']['logout_redirects']['redirect_cap'],
541 499 'dependency' => ['user_types', '==', 'user_cap'],
542 500 ];
543 501
@@ -547,10 +505,10 @@
547 505 'id' => 'redirect_url',
548 506 'type' => 'text',
549 507 'class' => 'new-login-url',
550 508 'title' => __('Redirect URL', 'adminify'),
551 - 'placeholder' => __('e.g., goodbye or https://example.com/page', 'adminify'),
552 - 'desc' => __('Enter a page slug (e.g., goodbye) or full URL. For multisite, use full URLs for cross-site redirects.', 'adminify'),
509 + 'before' => \get_site_url() . '/',
510 + 'desc' => __('Change the URL for a User or User Roles.', 'adminify'),
553 511 'default' => $this->get_default_field('redirect_urls_fields')['redirect_urls_options']['redirect_urls_tabs']['logout_redirects']['redirect_url'],
554 512 ];
555 513
556 514 // Redirect Order
@@ -568,42 +526,27 @@
568 526 */
569 527 public function security_user_security(&$users){
570 528
571 529 $users_settings[] = [
572 - 'id' => 'enable_users_security',
530 + 'id' => 'change_username',
573 531 'type' => 'switcher',
574 532 'text_on' => __('Show', 'adminify'),
575 533 'text_off' => __('Hide', 'adminify'),
576 - 'class' => 'adminify-pl-0 adminify-pt-0',
577 534 'text_width' => 80,
578 - 'title' => __('', 'adminify'),
579 - 'default' => $this->get_default_field('users_security')['enable_users_security'],
535 + 'title' => __('Username Change', 'adminify'),
536 + 'subtitle' => sprintf(__('Remove Comments for Media attachment Template <a href="%s">More Details</a> ', 'adminify'), esc_url('https://wpadminify.com/docs')),
537 + 'default' => $this->get_default_field('users_security')['change_username'],
580 538 ];
581 -
582 539 $users_settings[] = [
583 - 'id' => 'change_username',
540 + 'id' => 'limit_logins',
584 541 'type' => 'switcher',
585 542 'text_on' => __('Show', 'adminify'),
586 543 'text_off' => __('Hide', 'adminify'),
587 544 'text_width' => 80,
588 - 'title' => __('Username Change', 'adminify'),
589 - /* translators: %s: URL to the documentation page */
590 - 'subtitle' => sprintf(__('Remove Comments for Media attachment Template <a href="%s">More Details</a> ', 'adminify'), esc_url('https://wpadminify.com/docs')),
591 - 'default' => $this->get_default_field('users_security')['change_username'],
592 - 'dependency' => ['enable_users_security', '==', 'true', 'true']
545 + 'title' => __('Limit Login Attempts', 'adminify'),
546 + 'subtitle' => sprintf(__('Prevent brute force attacks by limiting the number of failed login attempts per IP address. <a href="%s">More Details</a> ', 'adminify'), esc_url('https://wpadminify.com/docs')),
547 + 'default' => $this->get_default_field('users_security')['limit_logins'],
593 548 ];
594 - // $users_settings[] = [
595 - // 'id' => 'limit_logins',
596 - // 'type' => 'switcher',
597 - // 'text_on' => __('Show', 'adminify'),
598 - // 'text_off' => __('Hide', 'adminify'),
599 - // 'text_width' => 80,
600 - // 'title' => __('Limit Login Attempts', 'adminify'),
601 - // /* translators: %s: URL to the documentation page */
602 - // 'subtitle' => sprintf(__('Prevent brute force attacks by limiting the number of failed login attempts per IP address. <a href="%s">More Details</a> ', 'adminify'), esc_url('https://wpadminify.com/docs')),
603 - // 'default' => $this->get_default_field('users_security')['limit_logins'],
604 - // 'dependency' => ['enable_users_security', '==', 'true', 'true']
605 - // ];
606 549
607 550 $users[] = array(
608 551 'id' => 'users_security',
609 552 'type' => 'fieldset',
@@ -632,9 +575,9 @@
632 575 [
633 576 'id' => 'security_rest_api_enable',
634 577 'type' => 'switcher',
635 578 'class' => 'adminify-pl-0 adminify-pt-0',
636 - 'title' => '',
579 + 'title' => __('', 'adminify'),
637 580 'text_on' => __('Show', 'adminify'),
638 581 'text_off' => __('Hide', 'adminify'),
639 582 'text_width' => 80,
640 583 'default' => $this->get_default_field('security_rest_api')['security_rest_api_enable'],
@@ -641,9 +584,9 @@
641 584 ],
642 585 [
643 586 'id' => 'security_rest_api_data',
644 587 'type' => 'checkbox',
645 - 'title' => '',
588 + 'title' => __('', 'adminify'),
646 589 'class' => 'adminify-one-col',
647 590 'options' => $json_api_fields_data,
648 591 'default' => $this->get_default_field('security_rest_api')['security_rest_api_data'],
649 592 'dependency' => ['security_rest_api_enable', '==', 'true', true],
@@ -685,9 +628,9 @@
685 628 'fields' => [
686 629 [
687 630 'id' => 'post_archives_enable',
688 631 'type' => 'switcher',
689 - 'title' => '',
632 + 'title' => __('', 'adminify'),
690 633 'text_on' => __('Show', 'adminify'),
691 634 'text_off' => __('Hide', 'adminify'),
692 635 'text_width' => 80,
693 636 'class' => 'adminify-pl-0 adminify-pt-0',
@@ -696,9 +639,9 @@
696 639 [
697 640 'id' => 'post_archives_data',
698 641 'type' => 'checkbox',
699 642 'class' => 'adminify-one-col',
700 - 'title' => '',
643 + 'title' => __('', 'adminify'),
701 644 'options' => $archive_fields_data,
702 645 'default' => $this->get_default_field('post_archives')['post_archives_data'],
703 646 'dependency' => ['post_archives_enable', '==', 'true', true],
704 647 ],
@@ -723,9 +666,8 @@
723 666 'id' => 'enable',
724 667 'type' => 'switcher',
725 668 'title' => '',
726 669 'class' => 'adminify-pt-0 adminify-pl-0 adminify-col-fit',
727 - /* translators: %s: URL to the Discussion settings page */
728 670 'label' => sprintf(__('Add your Custom Gravatar Images for Comments. Select Avatar Image from <a href="%s">Settings>Discussion>Default Avatar</a>.', 'adminify'), esc_url(admin_url('options-discussion.php'))),
729 671 'text_on' => __('Yes', 'adminify'),
730 672 'text_off' => __('No', 'adminify'),
731 673 'text_width' => 80,
@@ -773,10 +715,9 @@
773 715 $fields[] = [
774 716 'id' => 'disable_automatic_emails',
775 717 'type' => 'switcher',
776 718 'class' => 'adminify-pro-fieldset adminify-pro-notice',
777 - /* translators: %s: Pro upgrade badge HTML */
778 - 'title' => sprintf(__('Disable Automatic Updates Emails %s', 'adminify'), Utils::upgrade_pro_badge()),
719 + 'title' => sprintf(__('Disable Automatic Updates Emails %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
779 720 'subtitle' => __('Stop getting emails about automatic updates on your WordPress site.', 'adminify'),
780 721 'text_on' => __('Yes', 'adminify'),
781 722 'text_off' => __('No', 'adminify'),
782 723 'text_width' => 80,
@@ -786,10 +727,9 @@
786 727 $fields[] = [
787 728 'id' => 'disable_language_switcher_login',
788 729 'type' => 'switcher',
789 730 'class' => 'adminify-pro-fieldset adminify-pro-notice',
790 - /* translators: %s: Pro upgrade badge HTML */
791 - 'title' => sprintf(__('Disable Login Screen Language Switcher %s', 'adminify'), Utils::upgrade_pro_badge()),
731 + 'title' => sprintf(__('Disable Login Screen Language Switcher %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
792 732 'subtitle' => __('Hide the Language Switcher on the default WordPress login screen.', 'adminify'),
793 733 'text_on' => __('Yes', 'adminify'),
794 734 'text_off' => __('No', 'adminify'),
795 735 'text_width' => 80,
@@ -814,14 +754,11 @@
814 754 'discussion_menu' => __('Remove Discussion Menu from "Settings>Discussion" Sub Menu', 'adminify'),
815 755 'close_front' => __('Close Comments from front-end', 'adminify'),
816 756 'comments_notes' => __('Remove "Your email address will not be published..." from comment form template', 'adminify'),
817 757 'comments_url_field' => __('Remove website Field (URL) from comment form template', 'adminify'),
818 - /* translators: %s: Pro upgrade badge CSS class */
819 - 'replace_author_link' => sprintf(__('Remove Link from comment "Author Name" & replace to JavaScript? %s', 'adminify'), Utils::upgrade_pro_class()),
820 - /* translators: %s: Pro upgrade badge CSS class */
821 - 'replace_comment_link' => sprintf(__('Comments Content disable auto linking, display comments links as plain text, replace Comment Links to JavaScript? %s', 'adminify'), Utils::upgrade_pro_class()),
822 - /* translators: %s: Pro upgrade badge CSS class */
823 - 'hide_existing' => sprintf(__('Hide Existing Comments from Frontend? %s', 'adminify'), Utils::upgrade_pro_class()),
758 + 'replace_author_link' => sprintf(__('Remove Link from comment "Author Name" & replace to JavaScript? %s'), Utils::adminify_upgrade_pro_class()),
759 + 'replace_comment_link' => sprintf(__('Comments Content disable auto linking, display comments links as plain text, replace Comment Links to JavaScript? %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
760 + 'hide_existing' => sprintf(__('Hide Existing Comments from Frontend? %s', 'adminify'), Utils::adminify_upgrade_pro_class()),
824 761 ];
825 762
826 763 // check if WP_Widget_Recent_Comments is used
827 764 // $recentcomments = [];
@@ -838,9 +775,9 @@
838 775 'fields' => [
839 776 [
840 777 'id' => 'enable_disable_comments',
841 778 'type' => 'switcher',
842 - 'title' => '',
779 + 'title' => __('', 'adminify'),
843 780 'class' => 'adminify-pl-0 adminify-pt-0',
844 781 'text_on' => __('Show', 'adminify'),
845 782 'text_off' => __('Hide', 'adminify'),
846 783 'text_width' => 80,
@@ -850,9 +787,9 @@
850 787 'id' => 'post_types',
851 788 'type' => 'checkbox',
852 789 'title' => __('for Post Types', 'adminify'),
853 790 'subtitle' => __('Check for enable Post Types', 'adminify'),
854 - 'options' => 'PXLBSAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
791 + 'options' => 'WPAdminify\Inc\Admin\Options\Productivity::get_all_post_types',
855 792 'default' => $this->get_default_field('disable_comments')['post_types'],
856 793 'dependency' => ['enable_disable_comments', '==', 'true', true],
857 794 ],
858 795 // [
@@ -858,9 +795,9 @@
858 795 // [
859 796 // 'id' => 'disable_comments_post_types',
860 797 // 'type' => 'notice',
861 798 // 'style' => 'warning',
862 - // 'content' => Utils::upgrade_pro_notice(),
799 + // 'content' => Utils::adminify_upgrade_pro(),
863 800 // 'dependency' => [
864 801 // [ 'post_types', 'not-any', 'post,page', 'true' ],
865 802 // [ 'post_types', '!=', '', 'true' ],
866 803 // ],
@@ -867,9 +804,9 @@
867 804 // ],
868 805 [
869 806 'id' => 'apply_for',
870 807 'type' => 'checkbox',
871 - 'title' => '',
808 + 'title' => __('', 'adminify'),
872 809 'class' => 'adminify-one-col',
873 810 'options' => $disable_comments_for,
874 811 'default' => $this->get_default_field('disable_comments')['apply_for'],
875 812 'dependency' => ['enable_disable_comments', '==', 'true', true],
@@ -887,23 +824,24 @@
887 824
888 825 $fields = [];
889 826
890 827 $fields[] = [
891 - 'id' => 'security_subheading',
828 + 'id' => 'security_sub_heading',
892 829 'type' => 'subheading',
893 - 'content' => Utils::help_urls(
894 - __('"WordPress" White Label Settings', 'adminify'),
895 - 'https://wpadminify.com/docs/security/',
896 - '',
830 + 'content' => Utils::adminfiy_help_urls(
831 + __('<span></span>', 'adminify'),
832 + 'https://wpadminify.com/kb/disable-admin-notice-in-wordpress-dashboard/',
833 + 'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8',
897 834 'https://www.facebook.com/groups/jeweltheme',
898 - \PXLBSAdminify\Inc\Admin\AdminSettings::support_url()
899 - )
835 + 'https://wpadminify.com/support/'
836 + ),
900 837 ];
901 838
839 +
902 840 $this->security_redirect_urls( $fields );
903 - $this->security_user_security( $fields );
841 + // $this->security_user_security( $fields );
904 842 $this->security_head_fields( $fields );
905 - $this->security_feed_fields( $fields );
843 + $this->security_feed_fields( $fields );
906 844 $this->security_rest_api_fields( $fields );
907 845 $this->security_disable_comments( $fields );
908 846 $this->security_archive_fields( $fields );
909 847 // $this->security_others( $fields );
@@ -909,9 +847,9 @@
909 847 // $this->security_others( $fields );
910 848
911 849 $this->security_custom_gravatar( $fields );
912 850
913 - $fields = apply_filters('pxlbsadminify_settings/security', $fields, $this);
851 + $fields = apply_filters('adminify_settings/security', $fields, $this);
914 852
915 853 // Tweaks Section
916 854 \ADMINIFY::createSection(
917 855 $this->prefix,