Update to wordpress plugin class