diff --git a/content-warning-v3.php b/content-warning-v3.php index 6b5ebf1..23e761b 100644 --- a/content-warning-v3.php +++ b/content-warning-v3.php @@ -18,7 +18,7 @@ if ( is_admin() ) { require_once dirname( __FILE__ ) . '/class/admin.class.php'; $cwv3_options = new JW_SIMPLE_OPTIONS( $cwv3_op_data ); - register_uninstall_hook( __FILE__, $cwv3_options->uninstall() ); + register_uninstall_hook( __FILE__, array( $cwv3_options, 'uninstall' ) ); } else { require_once dirname( __FILE__ ) . '/class/main.class.php'; }