errorNotice = $errorNotice; } public function showError() { add_action( 'admin_notices', function() { ?>
errorNotice ); ?>