• Resolved Amir

    (@repenter)


    Hi again ??
    I found this code in my functions, but didn’t know what does this code mean. Is this official by yours or maybe a developer put it there for me? Do you know what does it do?

    add_action( ‘admin_footer’, ‘disable_discuz_comment’ );
    function disable_discuz_comment() {
    if(is_admin() && $_GET[‘page’] == ‘system-admin-options’):
    deactivate_plugins( plugin_basename( ‘ class.WpdiscuzCore.php’ ) );
    else:
    activate_plugin(plugin_basename( ‘ class.WpdiscuzCore.php’ ));
    endif;
    }

    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unknown Code’ is closed to new replies.