Plugin Directory

Changeset 3253802


Ignore:
Timestamp:
03/11/2025 07:15:47 AM (12 months ago)
Author:
mikinc860
Message:

disabled discussion options from admin settings

Location:
disable-comments-entire
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • disable-comments-entire/tags/1.3/class-disable-entire-comment.php

    r3253793 r3253802  
    6565            add_action('admin_menu', function () {
    6666                remove_menu_page('edit-comments.php');
     67                remove_submenu_page('options-general.php', 'options-discussion.php');
    6768            });
    6869
     
    9798                exit;
    9899            }
     100
     101            if ($pagenow == 'options-discussion.php') {
     102                wp_safe_redirect(admin_url());
     103                exit;
     104            }
    99105       
    100106            // Disable comments metabox from dashboard
     
    108114                }
    109115            }
     116
     117            update_option('default_ping_status', 'closed');
     118            update_option('default_comment_status', 'closed');
    110119        }
    111120
  • disable-comments-entire/tags/1.3/readme.txt

    r3253794 r3253802  
    44Requires at least: 5.2
    55Tested up to: 6.7.2
    6 Stable tag: 1.2
     6Stable tag: 1.3
    77Requires PHP: 8.0
    88License: GPLv3 or later
     
    1616
    1717Key Features:
    18 1. Easy Activation: Get started quickly with no coding required.
     181. Easy Activation: Get started quickly with no coding or settings required.
    19192. Site-Wide Control: Disable comments across all posts and pages instantly.
    20203. Improved User Experience: Create a more focused environment for your visitors.
     
    3333= 1.3 =
    3434Tested up to WordPress 6.7.2
     35Disabled the discussion settings option from the admin settings.
     36Closed the ping status and comment status.
    3537
    3638= 1.2 =
  • disable-comments-entire/trunk/class-disable-entire-comment.php

    r3173645 r3253802  
    6565            add_action('admin_menu', function () {
    6666                remove_menu_page('edit-comments.php');
     67                remove_submenu_page('options-general.php', 'options-discussion.php');
    6768            });
    6869
     
    9798                exit;
    9899            }
     100
     101            if ($pagenow == 'options-discussion.php') {
     102                wp_safe_redirect(admin_url());
     103                exit;
     104            }
    99105       
    100106            // Disable comments metabox from dashboard
     
    108114                }
    109115            }
     116
     117            update_option('default_ping_status', 'closed');
     118            update_option('default_comment_status', 'closed');
    110119        }
    111120
  • disable-comments-entire/trunk/readme.txt

    r3253794 r3253802  
    44Requires at least: 5.2
    55Tested up to: 6.7.2
    6 Stable tag: 1.2
     6Stable tag: 1.3
    77Requires PHP: 8.0
    88License: GPLv3 or later
     
    1616
    1717Key Features:
    18 1. Easy Activation: Get started quickly with no coding required.
     181. Easy Activation: Get started quickly with no coding or settings required.
    19192. Site-Wide Control: Disable comments across all posts and pages instantly.
    20203. Improved User Experience: Create a more focused environment for your visitors.
     
    3333= 1.3 =
    3434Tested up to WordPress 6.7.2
     35Disabled the discussion settings option from the admin settings.
     36Closed the ping status and comment status.
    3537
    3638= 1.2 =
Note: See TracChangeset for help on using the changeset viewer.