コード例 #1
0
<?php

// this seems to be the preferred way to handle an uninstall
if (!defined('WP_UNINSTALL_PLUGIN')) {
    exit;
}
require_once 'core.php';
Draft_Post_Revisions::uninstall();
コード例 #2
0
 function test_plugin_uninstalls()
 {
     Draft_Post_Revisions::uninstall();
     $options = get_option(Draft_Post_Revisions::options_key());
     $this->assertFalse($options);
 }