Advertisement
BinPaste

Test.class.php

Nov 17th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2.  
  3. class Test
  4. {
  5.     public function __construct(){
  6.         //$file = __FILE__;
  7.         $file = dirname(__FILE__).'/test.php';
  8.         register_uninstall_hook($file, array('Test', 'uninstall'));
  9.     }
  10.    
  11.     public static function uninstall(){
  12.         ob_start();
  13.         var_dump(defined(WP_UNINSTALL_PLUGIN), WP_UNINSTALL_PLUGIN);
  14.         throw new Exception(ob_get_clean());
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement