403Webshell
Server IP : 104.21.41.186  /  Your IP : 216.73.216.182
Web Server : LiteSpeed
System : Linux pbn-16.isgood.host 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gamenohushop ( 1160)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/local/lsws/gamenohu.shop/html/wp-content/themes/flatsome-child/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/lsws/gamenohu.shop/html/wp-content/themes/flatsome-child/includes/disable-comment.php
<?php
if (!class_exists('disable_comments') {
    class disable_comments {

        public function __construct() {
            add_action('admin_init', array($this, 'disable_comments_on_all_post_types'));
            add_filter('comments_open', array($this, 'disable_comments_status'), 20, 2);
            add_filter('pings_open', array($this, 'disable_comments_status'), 20, 2);
        }

        public function disable_comments_on_all_post_types() {
            $types = get_post_types();
            foreach ($types as $type) {
                if (post_type_supports($type, 'comments')) {
                    remove_post_type_support($type, 'comments');
                    remove_post_type_support($type, 'trackbacks');
                }
            }
        }

        public function disable_comments_status() {
            return false;
        }
    }

    new disable_comments();
}

Youez - 2016 - github.com/yon3zu
LinuXploit